1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "ndspy";
11 version = "4.2.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "RoadrunnerWMC";
18 repo = "ndspy";
19 tag = "v${version}";
20 hash = "sha256-PQONVEuh5Fg2LHr4gq0XTGcOpps/s9FSgoyDn4BCcik=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "ndspy" ];
26
27 preCheck = ''
28 cd tests
29 '';
30
31 meta = with lib; {
32 description = "Python library for many Nintendo DS file formats";
33 homepage = "https://github.com/RoadrunnerWMC/ndspy";
34 license = licenses.gpl3Plus;
35 maintainers = with maintainers; [ marius851000 ];
36 };
37}