2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ndspy";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "4.1.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
2021-06-04 09:07:49 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RoadrunnerWMC";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-V7phRZCA0WbUpYLgS/4nJbje/JM61RksDUZQ2pnbQyU=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ndspy"
|
|
|
|
];
|
2021-06-04 09:07:49 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
preCheck = ''
|
|
|
|
cd tests
|
|
|
|
'';
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Python library for many Nintendo DS file formats";
|
2021-06-04 09:07:49 +00:00
|
|
|
homepage = "https://github.com/RoadrunnerWMC/ndspy";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ xfix ];
|
|
|
|
};
|
|
|
|
}
|