blob: 998613d17b42937e2bf75c0f49f3085d39a4b11f (
plain)
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
46
|
{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
pynintendoauth,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "pynintendoparental";
version = "2.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "pantherale0";
repo = "pynintendoparental";
tag = finalAttrs.version;
hash = "sha256-jF1hoGNDwbbacJuLiFAdtaXOykzioUt++RQrYO1skkA=";
};
postPatch = ''
substituteInPlace pynintendoparental/_version.py \
--replace-fail '__version__ = "0.0.0"' '__version__ = "${finalAttrs.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/${finalAttrs.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 ];
};
})
|