python312Packages.ovoenergy: refactor
This commit is contained in:
parent
4f63d0846f
commit
161c71f5b7
1 changed files with 9 additions and 11 deletions
|
@ -4,38 +4,36 @@
|
||||||
, click
|
, click
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, incremental
|
, incremental
|
||||||
, pydantic
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, typer
|
, typer
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ovoenergy";
|
pname = "ovoenergy";
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "timmo001";
|
owner = "timmo001";
|
||||||
repo = pname;
|
repo = "ovoenergy";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk=";
|
hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
incremental
|
incremental
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
dependencies = [
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "typer==0.6.1" "typer"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
aiohttp
|
aiohttp
|
||||||
click
|
click
|
||||||
pydantic
|
|
||||||
typer
|
typer
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue