mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
python312Packages.pyituran: init at 0.1.4
Module to interact with the Ituran web service https://github.com/shmuelzon/pyituran
This commit is contained in:
parent
50bc93ce73
commit
e45aeef5dc
49
pkgs/development/python-modules/pyituran/default.nix
Normal file
49
pkgs/development/python-modules/pyituran/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyituran";
|
||||
version = "0.1.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "shmuelzon";
|
||||
repo = "pyituran";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-rgPW+z70Z9wRzPbPtWUHb80vCccWJlEs18Y6llIeipo=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -10500,6 +10500,8 @@ self: super: with self; {
|
||||
|
||||
pyisy = callPackage ../development/python-modules/pyisy { };
|
||||
|
||||
pyituran = callPackage ../development/python-modules/pyituran { };
|
||||
|
||||
pyixapi = callPackage ../development/python-modules/pyixapi { };
|
||||
|
||||
pykcs11 = callPackage ../development/python-modules/pykcs11 { };
|
||||
|
Loading…
Reference in New Issue
Block a user