Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 795 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, crcmod 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "ndspy"; 11 version = "4.0.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "RoadrunnerWMC"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "0x3sp10had1mq192m7kgjivvs8kpjagxjgj9d4z95dfjhzzbjh70"; 21 }; 22 23 propagatedBuildInputs = [ 24 crcmod 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "ndspy" 33 ]; 34 35 preCheck = '' 36 cd tests 37 ''; 38 39 meta = with lib; { 40 description = "Python library for many Nintendo DS file formats"; 41 homepage = "https://github.com/RoadrunnerWMC/ndspy"; 42 license = licenses.gpl3Plus; 43 maintainers = with maintainers; [ xfix ]; 44 }; 45}