nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 60 lines 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 orjson, 9 hatchling, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytestCheckHook, 13 syrupy, 14 yarl, 15}: 16 17buildPythonPackage (finalAttrs: { 18 pname = "aiotankerkoenig"; 19 version = "0.5.2"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "jpbede"; 24 repo = "aiotankerkoenig"; 25 tag = "v${finalAttrs.version}"; 26 hash = "sha256-LpaJyx5w0htbvWJ8kL8BlyMdlLOKlR6p+XW7qWMhXZo="; 27 }; 28 29 postPatch = '' 30 substituteInPlace pyproject.toml \ 31 --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' 32 ''; 33 34 build-system = [ hatchling ]; 35 36 dependencies = [ 37 aiohttp 38 mashumaro 39 orjson 40 yarl 41 ]; 42 43 nativeCheckInputs = [ 44 aioresponses 45 pytest-asyncio 46 pytest-cov-stub 47 pytestCheckHook 48 syrupy 49 ]; 50 51 pythonImportsCheck = [ "aiotankerkoenig" ]; 52 53 meta = { 54 description = "Python module for interacting with tankerkoenig.de"; 55 homepage = "https://github.com/jpbede/aiotankerkoenig"; 56 changelog = "https://github.com/jpbede/aiotankerkoenig/releases/tag/${finalAttrs.src.tag}"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ fab ]; 59 }; 60})