snac2: 2.68 -> 2.70 (#379043)
[NixPkgs.git] / pkgs / development / python-modules / amberelectric / default.nix
blobb8214fa5372b064ee93e1567d96c91e73a7c18fd
2   lib,
3   aenum,
4   buildPythonPackage,
5   fetchFromGitHub,
6   poetry-core,
7   pydantic,
8   pytest-mock,
9   pytestCheckHook,
10   python-dateutil,
11   pythonOlder,
12   urllib3,
15 buildPythonPackage rec {
16   pname = "amberelectric";
17   version = "2.0.12";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "madpilot";
24     repo = "amberelectric.py";
25     tag = "v${version}";
26     hash = "sha256-HTelfgOucyQINz34hT3kGxhJf68pxKbiO3L54nt5New=";
27   };
29   build-system = [ poetry-core ];
31   dependencies = [
32     aenum
33     urllib3
34     pydantic
35     python-dateutil
36   ];
38   nativeCheckInputs = [
39     pytest-mock
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "amberelectric" ];
45   meta = with lib; {
46     description = "Python Amber Electric API interface";
47     homepage = "https://github.com/madpilot/amberelectric.py";
48     license = with licenses; [ asl20 ];
49     maintainers = with maintainers; [ fab ];
50   };