1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, future
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "nampa";
10 version = "1.0";
11
12 src = fetchFromGitHub {
13 owner = "thebabush";
14 repo = pname;
15 rev = version;
16 sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a";
17 };
18
19 propagatedBuildInputs = [
20 future
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 postPatch = ''
28 # https://github.com/thebabush/nampa/pull/13
29 substituteInPlace setup.py \
30 --replace "0.1.1" "${version}"
31 '';
32
33 pythonImportsCheck = [ "nampa" ];
34
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 };
41}