Robert Schütz 2024-04-12 12:57:43 -07:00
parent 250886da9b
commit f507171077
1 changed files with 17 additions and 6 deletions

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, python-dateutil
, requests
, pytestCheckHook
@ -9,19 +10,28 @@
buildPythonPackage rec {
pname = "srpenergy";
version = "1.3.6";
format = "setuptools";
version = "1.3.7";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "lamoreauxlab";
repo = "srpenergy-api-client-python";
rev = version;
hash = "sha256-aZnqGtfklWgigac2gdkQv29Qy5HC34zGGY2iWr2cOMo=";
rev = "refs/tags/${version}";
hash = "sha256-bdBF5y9hRj4rceUD5qjHOM9TIaHGElJ36YjWCJgCzX8=";
};
propagatedBuildInputs = [
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==" "setuptools>="
'';
build-system = [
setuptools
];
dependencies = [
python-dateutil
requests
];
@ -33,6 +43,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "srpenergy.client" ];
meta = with lib; {
changelog = "https://github.com/lamoreauxlab/srpenergy-api-client-python/releases/tag/${version}";
description = "Unofficial Python module for interacting with Srp Energy data";
homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python";
license = licenses.mit;