a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
32 lines
734 B
Nix
32 lines
734 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, astor
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flynt";
|
|
version = "0.66";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ikamensh";
|
|
repo = "flynt";
|
|
rev = version;
|
|
hash = "sha256-DV433wqLjF5k4g8J7rj5gZfaw+Y4/TDOoFKo3eKDjZ4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ astor ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "command line tool to automatically convert a project's Python code from old format style strings into Python 3.6+'s f-strings";
|
|
homepage = "https://github.com/ikamensh/flynt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
};
|
|
}
|