mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
flynt: init at 0.66 (#137177)
Co-authored-by: Bobby Rong <rjl931189261@126.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
2b022a979a
commit
b040385412
2 changed files with 34 additions and 0 deletions
32
pkgs/development/python-modules/flynt/default.nix
Normal file
32
pkgs/development/python-modules/flynt/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -2724,6 +2724,8 @@ in {
|
|||
|
||||
flux-led = callPackage ../development/python-modules/flux-led { };
|
||||
|
||||
flynt = callPackage ../development/python-modules/flynt { };
|
||||
|
||||
fn = callPackage ../development/python-modules/fn { };
|
||||
|
||||
fnvhash = callPackage ../development/python-modules/fnvhash { };
|
||||
|
|
Loading…
Reference in a new issue