python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / crysp / default.nix
blobd3a555a6d801c85aa7d108c613cb6df320792073
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   grandalf,
6   matplotlib,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "crysp";
13   version = "1.2";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "bdcht";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-51SKS6OOXIFT1L3YICR6a4QGSz/rbB8V+Z0u0jMO474=";
23   };
25   propagatedBuildInputs = [
26     grandalf
27     matplotlib
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   postPatch = ''
33     substituteInPlace setup.py \
34       --replace "'pytest-runner'," ""
35   '';
37   pythonImportsCheck = [ "crysp" ];
39   meta = with lib; {
40     description = "Module that provides crypto-related facilities";
41     homepage = "https://github.com/bdcht/crysp";
42     license = with licenses; [ gpl2Only ];
43     maintainers = with maintainers; [ fab ];
44   };