1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "ndspy"; 10 version = "4.1.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "RoadrunnerWMC"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-V7phRZCA0WbUpYLgS/4nJbje/JM61RksDUZQ2pnbQyU="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "ndspy" 28 ]; 29 30 preCheck = '' 31 cd tests 32 ''; 33 34 meta = with lib; { 35 description = "Python library for many Nintendo DS file formats"; 36 homepage = "https://github.com/RoadrunnerWMC/ndspy"; 37 license = licenses.gpl3Plus; 38 maintainers = with maintainers; [ xfix ]; 39 }; 40}