567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
741 B
Nix
38 lines
741 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ndspy";
|
|
version = "4.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RoadrunnerWMC";
|
|
repo = "ndspy";
|
|
tag = "v${version}";
|
|
hash = "sha256-PQONVEuh5Fg2LHr4gq0XTGcOpps/s9FSgoyDn4BCcik=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "ndspy" ];
|
|
|
|
preCheck = ''
|
|
cd tests
|
|
'';
|
|
|
|
meta = {
|
|
description = "Python library for many Nintendo DS file formats";
|
|
homepage = "https://github.com/RoadrunnerWMC/ndspy";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ marius851000 ];
|
|
};
|
|
}
|