summary refs log tree commit diff
path: root/pkgs/development/python-modules/crysp/default.nix
blob: 34f5d2c2f35c4229f822595beff811ecabbf04b2 (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
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, grandalf
, matplotlib
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "crysp";
  version = "1.2";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "bdcht";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-51SKS6OOXIFT1L3YICR6a4QGSz/rbB8V+Z0u0jMO474=";
  };

  propagatedBuildInputs = [
    grandalf
    matplotlib
  ];

  checkInputs = [
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "'pytest-runner'," ""
  '';

  pythonImportsCheck = [
    "crysp"
  ];

  meta = with lib; {
    description = "Module that provides crypto-related facilities";
    homepage = "https://github.com/bdcht/crysp";
    license = with licenses; [ gpl2Only ];
    maintainers = with maintainers; [ fab ];
  };
}