Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cart / default.nix
blob7373ac0691ccb8ec6041a581e63e1a60c46a88c5
1 { lib
2 , pycryptodome
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pythonOlder
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "cart";
11   version = "1.2.2";
12   format = "setuptools";
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "CybercentreCanada";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-0dHdXb4v92681xL21FsrIkNgNQ9R5ULV1lnSCITZzP8=";
21   };
23   propagatedBuildInputs = [
24     pycryptodome
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pytestFlagsArray = [
32     "unittests"
33   ];
35   pythonImportsCheck = [
36     "cart"
37   ];
39   meta = with lib; {
40     description = "Python module for the CaRT Neutering format";
41     mainProgram = "cart";
42     homepage = "https://github.com/CybercentreCanada/cart";
43     changelog = "https://github.com/CybercentreCanada/cart/releases/tag/v${version}";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };