Merge pull request #287427 from fabaff/pytechnove
python311Packages.python-technove: init at 1.2.2
This commit is contained in:
commit
5c31c4a2b6
64
pkgs/development/python-modules/python-technove/default.nix
Normal file
64
pkgs/development/python-modules/python-technove/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, aresponses
|
||||||
|
, awesomeversion
|
||||||
|
, backoff
|
||||||
|
, buildPythonPackage
|
||||||
|
, cachetools
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, yarl
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-technove";
|
||||||
|
version = "1.2.2";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.11";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Moustachauve";
|
||||||
|
repo = "pytechnove";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-kc5jR0IM2OagvmtqhicnBbrwrdk3E/iJhRIgUtKoirI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace-fail "--cov" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
awesomeversion
|
||||||
|
backoff
|
||||||
|
cachetools
|
||||||
|
yarl
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
aresponses
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"technove"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python library to interact with TechnoVE local device API";
|
||||||
|
homepage = "https://github.com/Moustachauve/pytechnove";
|
||||||
|
changelog = "https://github.com/Moustachauve/pytechnove/releases/tag/v${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -12028,6 +12028,8 @@ self: super: with self; {
|
||||||
|
|
||||||
python-stdnum = callPackage ../development/python-modules/python-stdnum { };
|
python-stdnum = callPackage ../development/python-modules/python-stdnum { };
|
||||||
|
|
||||||
|
python-technove = callPackage ../development/python-modules/python-technove { };
|
||||||
|
|
||||||
python-telegram = callPackage ../development/python-modules/python-telegram { };
|
python-telegram = callPackage ../development/python-modules/python-telegram { };
|
||||||
|
|
||||||
python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };
|
python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user