depot/third_party/nixpkgs/pkgs/development/python-modules/ovoenergy/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

55 lines
961 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, incremental
, pydantic
, pythonOlder
, typer
}:
buildPythonPackage rec {
pname = "ovoenergy";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timmo001";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-oeNwBmzlkE8JewSwuFG8OYigyispP4xdwO3s2CAcfW4=";
};
nativeBuildInputs = [
incremental
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "typer==0.6.1" "typer"
'';
propagatedBuildInputs = [
aiohttp
click
pydantic
typer
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"ovoenergy"
];
meta = with lib; {
description = "Python client for getting data from OVO's API";
homepage = "https://github.com/timmo001/ovoenergy";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}