about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cart/default.nix
blob: ecba8f9cc394fc0666aaa03607845daced3de7f6 (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
44
45
46
47
{ lib
, pycryptodome
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, unittest2
}:

buildPythonPackage rec {
  pname = "cart";
  version = "1.2.1";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "CybercentreCanada";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-PsdDlNhX0FbuwS5ZXk9P98DjnzDGdigfnRwrdwYa4qY=";
  };

  propagatedBuildInputs = [
    pycryptodome
  ];

  checkInputs = [
    pytestCheckHook
    unittest2
  ];

  pytestFlagsArray = [
    "unittests"
  ];

  pythonImportsCheck = [
    "cart"
  ];

  meta = with lib; {
    description = "Python module for the CaRT Neutering format";
    homepage = "https://github.com/CybercentreCanada/cart";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}