Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 logical-unification, 6 py, 7 pytestCheckHook, 8 pytest-html, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "cons"; 14 version = "0.4.6"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "pythological"; 21 repo = "python-cons"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-XssERKiv4A8x7dZhLeFSciN6RCEfGs0or3PAQiYSPII="; 24 }; 25 26 propagatedBuildInputs = [ logical-unification ]; 27 28 nativeCheckInputs = [ 29 py 30 pytestCheckHook 31 pytest-html 32 ]; 33 34 pytestFlagsArray = [ 35 "--html=testing-report.html" 36 "--self-contained-html" 37 ]; 38 39 pythonImportsCheck = [ "cons" ]; 40 41 meta = with lib; { 42 description = "Implementation of Lisp/Scheme-like cons in Python"; 43 homepage = "https://github.com/pythological/python-cons"; 44 changelog = "https://github.com/pythological/python-cons/releases/tag/v${version}"; 45 license = licenses.gpl3Only; 46 maintainers = with maintainers; [ Etjean ]; 47 }; 48}