at master 871 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 grandalf, 6 matplotlib, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "crysp"; 13 version = "1.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "bdcht"; 20 repo = "crysp"; 21 rev = "v${version}"; 22 hash = "sha256-51SKS6OOXIFT1L3YICR6a4QGSz/rbB8V+Z0u0jMO474="; 23 }; 24 25 propagatedBuildInputs = [ 26 grandalf 27 matplotlib 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 postPatch = '' 33 substituteInPlace setup.py \ 34 --replace "'pytest-runner'," "" 35 ''; 36 37 pythonImportsCheck = [ "crysp" ]; 38 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 }; 45}