about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ndspy/default.nix
blob: 7408949649fa04087f29be50fd279b50223dd6a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ 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 ];
  };
}