nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 46 lines 965 B view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-asyncio, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pyituran"; 13 version = "0.1.5"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "shmuelzon"; 18 repo = "pyituran"; 19 tag = version; 20 hash = "sha256-Nil9bxXzDvwMIVTxeaVUOtJwx92zagA6OzQV3LMR8d8="; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace-fail 'os.environ["VERSION"]' '"${version}"' 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ aiohttp ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "pyituran" ]; 38 39 meta = { 40 description = "Module to interact with the Ituran web service"; 41 homepage = "https://github.com/shmuelzon/pyituran"; 42 changelog = "https://github.com/shmuelzon/pyituran/releases/tag/${version}"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46}