2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srpenergy";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.3.6";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lamoreauxlab";
|
|
|
|
repo = "srpenergy-api-client-python";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-aZnqGtfklWgigac2gdkQv29Qy5HC34zGGY2iWr2cOMo=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|