
Diff: https://github.com/shmuelzon/pyituran/compare/refs/tags/0.1.4...refs/tags/0.1.5 Changelog: https://github.com/shmuelzon/pyituran/releases/tag/0.1.5
50 lines
1013 B
Nix
50 lines
1013 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyituran";
|
|
version = "0.1.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shmuelzon";
|
|
repo = "pyituran";
|
|
tag = version;
|
|
hash = "sha256-Nil9bxXzDvwMIVTxeaVUOtJwx92zagA6OzQV3LMR8d8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail 'os.environ["VERSION"]' '"${version}"'
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyituran" ];
|
|
|
|
meta = {
|
|
description = "Module to interact with the Ituran web service";
|
|
homepage = "https://github.com/shmuelzon/pyituran";
|
|
changelog = "https://github.com/shmuelzon/pyituran/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|