ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / nampa / default.nix
blob9f572d141c708fd3cda57fa7f870ee6b8f2e4d22
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , future
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "nampa";
10   version = "1.0";
12   src = fetchFromGitHub {
13     owner = "thebabush";
14     repo = pname;
15     rev = version;
16     sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a";
17   };
19   propagatedBuildInputs = [
20     future
21   ];
23   checkInputs = [
24     pytestCheckHook
25   ];
27   postPatch = ''
28     # https://github.com/thebabush/nampa/pull/13
29     substituteInPlace setup.py \
30       --replace "0.1.1" "${version}"
31   '';
33   pythonImportsCheck = [ "nampa" ];
35   meta = with lib; {
36     description = "Python implementation of the FLIRT technology";
37     homepage = "https://github.com/thebabush/nampa";
38     license = licenses.lgpl3Only;
39     maintainers = with maintainers; [ fab ];
40   };