nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 48 lines 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-asyncio, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "aiopegelonline"; 14 version = "0.1.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "mib1185"; 19 repo = "aiopegelonline"; 20 tag = "v${version}"; 21 hash = "sha256-kDz+q4Y6ImgXbY7OSC/PKXPtKdktixW+ee51xHMX9o4="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace-fail "setuptools==75.6.0" "setuptools" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ aiohttp ]; 32 33 nativeCheckInputs = [ 34 aioresponses 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "aiopegelonline" ]; 40 41 meta = { 42 description = "Library to retrieve data from PEGELONLINE"; 43 homepage = "https://github.com/mib1185/aiopegelonline"; 44 changelog = "https://github.com/mib1185/aiopegelonline/releases/tag/v${version}"; 45 license = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}