Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, python-dateutil 6, requests 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "srpenergy"; 12 version = "1.3.6"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "lamoreauxlab"; 18 repo = "srpenergy-api-client-python"; 19 rev = version; 20 hash = "sha256-aZnqGtfklWgigac2gdkQv29Qy5HC34zGGY2iWr2cOMo="; 21 }; 22 23 propagatedBuildInputs = [ 24 python-dateutil 25 requests 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "srpenergy.client" ]; 33 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 }; 40}