Diff: https://github.com/pantherale0/pynintendoparental/compare/2.3.0...2.3.2 Changelog: https://github.com/pantherale0/pynintendoparental/releases/tag/2.3.2
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pynintendoauth,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynintendoparental";
|
|
version = "2.3.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pantherale0";
|
|
repo = "pynintendoparental";
|
|
tag = version;
|
|
hash = "sha256-jF1hoGNDwbbacJuLiFAdtaXOykzioUt++RQrYO1skkA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pynintendoparental/_version.py \
|
|
--replace-fail '__version__ = "0.0.0"' '__version__ = "${version}"'
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
pynintendoauth
|
|
];
|
|
|
|
pythonImportsCheck = [ "pynintendoparental" ];
|
|
|
|
# test.py connects to the actual API
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/pantherale0/pynintendoparental/releases/tag/${src.tag}";
|
|
description = "Python module to interact with Nintendo Parental Controls";
|
|
homepage = "https://github.com/pantherale0/pynintendoparental";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
}
|