Merge pull request #164316 from xfix/ndspy_4_0_0

python3Packages.ndspy: 3.0.0 -> 4.0.0
This commit is contained in:
Fabian Affolter 2022-03-24 10:05:46 +01:00 committed by GitHub
commit e2d2fb44df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +1,44 @@
{ lib, buildPythonPackage, fetchPypi, crcmod }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, crcmod
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ndspy";
version = "3.0.0";
version = "4.0.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1s0i81gspas22bjwk9vhy3x5sw1svyybk7c2j1ixc77drr9ym20a";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "RoadrunnerWMC";
repo = pname;
rev = "v${version}";
sha256 = "0x3sp10had1mq192m7kgjivvs8kpjagxjgj9d4z95dfjhzzbjh70";
};
propagatedBuildInputs = [ crcmod ];
propagatedBuildInputs = [
crcmod
];
doCheck = false; # there are no tests
pythonImportsCheck = [ "ndspy" ];
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";
description = "A Python library for many Nintendo DS file formats";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ xfix ];
};