lol

Merge pull request #236743 from fabaff/python-opensky

python311Packages.python-opensky: init at 0.0.9

authored by

Fabian Affolter and committed by
GitHub
083b4e95 1773d7ef

+65
+63
pkgs/development/python-modules/python-opensky/default.nix
··· 1 + { lib 2 + , aiohttp 3 + , aresponses 4 + , buildPythonPackage 5 + , fetchFromGitHub 6 + , poetry-core 7 + , pydantic 8 + , pytest-asyncio 9 + , pytestCheckHook 10 + , pythonOlder 11 + , yarl 12 + }: 13 + 14 + buildPythonPackage rec { 15 + pname = "python-opensky"; 16 + version = "0.0.9"; 17 + format = "pyproject"; 18 + 19 + disabled = pythonOlder "3.10"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "joostlek"; 23 + repo = "python-opensky"; 24 + rev = "refs/tags/v${version}"; 25 + hash = "sha256-Fe0Ra4C4pM1+8ZZFv4yL0RKcUVOZ7Zk78i2ejBmkB/8="; 26 + }; 27 + 28 + postPatch = '' 29 + substituteInPlace pyproject.toml \ 30 + --replace 'version = "0.0.0"' 'version = "${version}"' \ 31 + --replace "--cov" "" 32 + substituteInPlace src/python_opensky/opensky.py \ 33 + --replace ".joinpath(uri)" "/ uri" 34 + ''; 35 + 36 + nativeBuildInputs = [ 37 + poetry-core 38 + ]; 39 + 40 + propagatedBuildInputs = [ 41 + aiohttp 42 + pydantic 43 + yarl 44 + ]; 45 + 46 + nativeCheckInputs = [ 47 + aresponses 48 + pytest-asyncio 49 + pytestCheckHook 50 + ]; 51 + 52 + pythonImportsCheck = [ 53 + "python_opensky" 54 + ]; 55 + 56 + meta = with lib; { 57 + description = "Asynchronous Python client for the OpenSky API"; 58 + homepage = "https://github.com/joostlek/python-opensky"; 59 + changelog = "https://github.com/joostlek/python-opensky/releases/tag/v${version}"; 60 + license = licenses.mit; 61 + maintainers = with maintainers; [ fab ]; 62 + }; 63 + }
+2
pkgs/top-level/python-packages.nix
··· 7817 7817 7818 7818 python-openems = callPackage ../development/python-modules/python-openems { }; 7819 7819 7820 + python-opensky = callPackage ../development/python-modules/python-opensky { }; 7821 + 7820 7822 python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { }; 7821 7823 7822 7824 python-owasp-zap-v2-4 = callPackage ../development/python-modules/python-owasp-zap-v2-4 { };