depot/third_party/nixpkgs/pkgs/development/python-modules/ndspy/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

45 lines
789 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
];
checkInputs = [
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 ];
};
}