lol

Merge pull request #287427 from fabaff/pytechnove

python311Packages.python-technove: init at 1.2.2

authored by

Fabian Affolter and committed by
GitHub
5c31c4a2 330ab323

+66
+64
pkgs/development/python-modules/python-technove/default.nix
··· 1 + { lib 2 + , aiohttp 3 + , aresponses 4 + , awesomeversion 5 + , backoff 6 + , buildPythonPackage 7 + , cachetools 8 + , fetchFromGitHub 9 + , poetry-core 10 + , pytest-asyncio 11 + , pytestCheckHook 12 + , pythonOlder 13 + , yarl 14 + }: 15 + 16 + buildPythonPackage rec { 17 + pname = "python-technove"; 18 + version = "1.2.2"; 19 + pyproject = true; 20 + 21 + disabled = pythonOlder "3.11"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "Moustachauve"; 25 + repo = "pytechnove"; 26 + rev = "refs/tags/v${version}"; 27 + hash = "sha256-kc5jR0IM2OagvmtqhicnBbrwrdk3E/iJhRIgUtKoirI="; 28 + }; 29 + 30 + postPatch = '' 31 + substituteInPlace pyproject.toml \ 32 + --replace-fail "--cov" "" 33 + ''; 34 + 35 + nativeBuildInputs = [ 36 + poetry-core 37 + ]; 38 + 39 + propagatedBuildInputs = [ 40 + aiohttp 41 + awesomeversion 42 + backoff 43 + cachetools 44 + yarl 45 + ]; 46 + 47 + nativeCheckInputs = [ 48 + aresponses 49 + pytest-asyncio 50 + pytestCheckHook 51 + ]; 52 + 53 + pythonImportsCheck = [ 54 + "technove" 55 + ]; 56 + 57 + meta = with lib; { 58 + description = "Python library to interact with TechnoVE local device API"; 59 + homepage = "https://github.com/Moustachauve/pytechnove"; 60 + changelog = "https://github.com/Moustachauve/pytechnove/releases/tag/v${version}"; 61 + license = licenses.mit; 62 + maintainers = with maintainers; [ fab ]; 63 + }; 64 + }
+2
pkgs/top-level/python-packages.nix
··· 12028 12028 12029 12029 python-stdnum = callPackage ../development/python-modules/python-stdnum { }; 12030 12030 12031 + python-technove = callPackage ../development/python-modules/python-technove { }; 12032 + 12031 12033 python-telegram = callPackage ../development/python-modules/python-telegram { }; 12032 12034 12033 12035 python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };