nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchPypi
5, poetry-core
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "pypoolstation";
11 version = "0.4.1";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 pname = "PyPoolstation";
18 inherit version;
19 sha256 = "sha256-GsEYlaoitHS2cOBHtgwhlREcps4q2ObnWywvCSak0NY=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 propagatedBuildInputs = [
27 aiohttp
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "pypoolstation"
35 ];
36
37 meta = with lib; {
38 description = "Python library to interact the the Poolstation platform";
39 homepage = "https://github.com/cibernox/PyPoolstation";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}