ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / crysp / default.nix
blob34f5d2c2f35c4229f822595beff811ecabbf04b2
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , grandalf
5 , matplotlib
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "crysp";
12   version = "1.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "bdcht";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-51SKS6OOXIFT1L3YICR6a4QGSz/rbB8V+Z0u0jMO474=";
22   };
24   propagatedBuildInputs = [
25     grandalf
26     matplotlib
27   ];
29   checkInputs = [
30     pytestCheckHook
31   ];
33   postPatch = ''
34     substituteInPlace setup.py \
35       --replace "'pytest-runner'," ""
36   '';
38   pythonImportsCheck = [
39     "crysp"
40   ];
42   meta = with lib; {
43     description = "Module that provides crypto-related facilities";
44     homepage = "https://github.com/bdcht/crysp";
45     license = with licenses; [ gpl2Only ];
46     maintainers = with maintainers; [ fab ];
47   };