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