diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/nampa/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/nampa/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/nampa/default.nix b/nixpkgs/pkgs/development/python-modules/nampa/default.nix new file mode 100644 index 000000000000..9f572d141c70 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/nampa/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, future +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "nampa"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "thebabush"; + repo = pname; + rev = version; + sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a"; + }; + + propagatedBuildInputs = [ + future + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + # https://github.com/thebabush/nampa/pull/13 + substituteInPlace setup.py \ + --replace "0.1.1" "${version}" + ''; + + pythonImportsCheck = [ "nampa" ]; + + meta = with lib; { + description = "Python implementation of the FLIRT technology"; + homepage = "https://github.com/thebabush/nampa"; + license = licenses.lgpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} |