about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/nampa/default.nix
blob: d5d411728315efbbc5bbd60318688c86e1b62f45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "nampa";
  version = "1.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "thebabush";
    repo = pname;
    rev = version;
    sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a";
  };

  propagatedBuildInputs = [
    future
  ];

  nativeCheckInputs = [
    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";
    mainProgram = "dumpsig.py";
    homepage = "https://github.com/thebabush/nampa";
    license = licenses.lgpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}