silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / development / python-modules / srpenergy / default.nix
blob7eb66f05d5442e54ff92b819ddfb8e591e131c9f
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   python-dateutil,
8   requests,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "srpenergy";
14   version = "1.3.7";
15   pyproject = true;
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "lamoreauxlab";
21     repo = "srpenergy-api-client-python";
22     rev = "refs/tags/${version}";
23     hash = "sha256-bdBF5y9hRj4rceUD5qjHOM9TIaHGElJ36YjWCJgCzX8=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace-fail "setuptools==" "setuptools>="
29   '';
31   build-system = [ setuptools ];
33   dependencies = [
34     python-dateutil
35     requests
36   ];
38   nativeCheckInputs = [ pytestCheckHook ];
40   pythonImportsCheck = [ "srpenergy.client" ];
42   meta = with lib; {
43     changelog = "https://github.com/lamoreauxlab/srpenergy-api-client-python/releases/tag/${version}";
44     description = "Unofficial Python module for interacting with Srp Energy data";
45     homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python";
46     license = licenses.mit;
47     maintainers = with maintainers; [ dotlambda ];
48   };