3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.srpenergy: init at 1.3.2

This commit is contained in:
Robert Schütz 2021-06-28 16:29:11 +02:00
parent 2db14a9cb5
commit 24da590943
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, python-dateutil
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "srpenergy";
version = "1.3.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "lamoreauxlab";
repo = "srpenergy-api-client-python";
rev = version;
sha256 = "03kldjk90mrnzf2hpd7xky0lpph853mjxc34kfa2m5mbpbpkxz9c";
};
propagatedBuildInputs = [
python-dateutil
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "srpenergy.client" ];
meta = with lib; {
description = "Unofficial Python module for interacting with Srp Energy data";
homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -8218,6 +8218,8 @@ in {
srp = callPackage ../development/python-modules/srp { };
srpenergy = callPackage ../development/python-modules/srpenergy { };
srptools = callPackage ../development/python-modules/srptools { };
srsly = callPackage ../development/python-modules/srsly { };