nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 grandalf,
6 matplotlib,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "crysp";
12 version = "1.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "bdcht";
17 repo = "crysp";
18 rev = "v${version}";
19 hash = "sha256-51SKS6OOXIFT1L3YICR6a4QGSz/rbB8V+Z0u0jMO474=";
20 };
21
22 propagatedBuildInputs = [
23 grandalf
24 matplotlib
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 postPatch = ''
30 substituteInPlace setup.py \
31 --replace "'pytest-runner'," ""
32 '';
33
34 pythonImportsCheck = [ "crysp" ];
35
36 meta = {
37 description = "Module that provides crypto-related facilities";
38 homepage = "https://github.com/bdcht/crysp";
39 license = with lib.licenses; [ gpl2Only ];
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}