nixpkgs/pkgs/development/python-modules/ndspy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
789 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, crcmod
, pytestCheckHook
, pythonOlder
}:
2021-05-30 20:57:12 +01:00
buildPythonPackage rec {
pname = "ndspy";
2022-03-15 20:50:39 +00:00
version = "4.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2021-05-30 20:57:12 +01:00
2022-03-15 20:50:39 +00:00
src = fetchFromGitHub {
owner = "RoadrunnerWMC";
repo = pname;
rev = "v${version}";
sha256 = "0x3sp10had1mq192m7kgjivvs8kpjagxjgj9d4z95dfjhzzbjh70";
2021-05-30 20:57:12 +01:00
};
propagatedBuildInputs = [
crcmod
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ndspy"
];
preCheck = ''
cd tests
'';
2021-05-30 20:57:12 +01:00
meta = with lib; {
description = "Python library for many Nintendo DS file formats";
2021-05-30 20:57:12 +01:00
homepage = "https://github.com/RoadrunnerWMC/ndspy";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ xfix ];
};
}