b5f8a5b808
Diff: https://github.com/hacf-fr/sfrbox-api/compare/refs/tags/v0.0.6...v0.0.8 Changelog: https://github.com/hacf-fr/sfrbox-api/releases/tag/v0.0.8
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, poetry-core
|
|
, pydantic
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, respx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sfrbox-api";
|
|
version = "0.0.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hacf-fr";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-yvVoWBupHRbMoXmun/pj0bPpujWKfH1SknEhvgIsPzk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'pydantic = ">=1.10.2"' 'pydantic = "*"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
defusedxml
|
|
httpx
|
|
pydantic
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
respx
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sfrbox_api"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for the SFR Box API";
|
|
homepage = "https://github.com/hacf-fr/sfrbox-api";
|
|
changelog = "https://github.com/hacf-fr/sfrbox-api/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|