python310Packages.sfrbox-api: init at 0.0.2
This commit is contained in:
parent
f605337abc
commit
f314b76c5d
62
pkgs/development/python-modules/sfrbox-api/default.nix
Normal file
62
pkgs/development/python-modules/sfrbox-api/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, defusedxml
|
||||
, fetchFromGitHub
|
||||
, httpx
|
||||
, poetry-core
|
||||
, pydantic
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, respx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sfrbox-api";
|
||||
version = "0.0.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hacf-fr";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kXM+Y7ZKKczVdKTXqmbgSxlFfHx3hAvT9nkF3Ex7ChY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'pydantic = ">=1.10.2"' 'pydantic = "*"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
defusedxml
|
||||
httpx
|
||||
pydantic
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -10294,6 +10294,8 @@ self: super: with self; {
|
||||
|
||||
sfepy = callPackage ../development/python-modules/sfepy { };
|
||||
|
||||
sfrbox-api = callPackage ../development/python-modules/sfrbox-api { };
|
||||
|
||||
sgmllib3k = callPackage ../development/python-modules/sgmllib3k { };
|
||||
|
||||
sgp4 = callPackage ../development/python-modules/sgp4 { };
|
||||
|
Loading…
Reference in New Issue
Block a user