mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
795 B
Nix
46 lines
795 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, crcmod
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ndspy";
|
|
version = "4.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RoadrunnerWMC";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0x3sp10had1mq192m7kgjivvs8kpjagxjgj9d4z95dfjhzzbjh70";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
crcmod
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ndspy"
|
|
];
|
|
|
|
preCheck = ''
|
|
cd tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python library for many Nintendo DS file formats";
|
|
homepage = "https://github.com/RoadrunnerWMC/ndspy";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ xfix ];
|
|
};
|
|
}
|