Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / srpenergy / default.nix
blobe36bd7c2e4b86999b56ca18d3f7668b238632577
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , python-dateutil
6 , requests
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "srpenergy";
12   version = "1.3.6";
14   disabled = pythonOlder "3.6";
16   src = fetchFromGitHub {
17     owner = "lamoreauxlab";
18     repo = "srpenergy-api-client-python";
19     rev = version;
20     hash = "sha256-aZnqGtfklWgigac2gdkQv29Qy5HC34zGGY2iWr2cOMo=";
21   };
23   propagatedBuildInputs = [
24     python-dateutil
25     requests
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "srpenergy.client" ];
34   meta = with lib; {
35     description = "Unofficial Python module for interacting with Srp Energy data";
36     homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python";
37     license = licenses.mit;
38     maintainers = with maintainers; [ dotlambda ];
39   };