depot/third_party/nixpkgs/pkgs/development/python-modules/ovoenergy/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

55 lines
961 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, incremental
, pydantic
, pythonOlder
, typer
}:
buildPythonPackage rec {
pname = "ovoenergy";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timmo001";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ZbLs8w0qeaV2qWP08FKnlZ3fefj15Bw2A2bGpL6/d0I=";
};
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 ];
};
}