diff options
author | Phillip Cloud <417981+cpcloud@users.noreply.github.com> | 2021-09-12 09:00:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 16:00:19 +0200 |
commit | b04038541242bdbe0891fc42a7b215cd02519f48 (patch) | |
tree | dfa2702f321330d5f9d6627e81aa8d88ada6c635 /pkgs/development | |
parent | 2b022a979ab40832bf35442fe5a5e5466e97619e (diff) |
flynt: init at 0.66 (#137177)
Co-authored-by: Bobby Rong <rjl931189261@126.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/flynt/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flynt/default.nix b/pkgs/development/python-modules/flynt/default.nix new file mode 100644 index 0000000000000..3c09106c94b86 --- /dev/null +++ b/pkgs/development/python-modules/flynt/default.nix @@ -0,0 +1,32 @@ +{ 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 ]; + + checkInputs = [ 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 ]; + }; +} |