Skip to content

Commit

Permalink
python312Packages.pyituran: init at 0.1.4
Browse files Browse the repository at this point in the history
Module to interact with the Ituran web service

https://github.com/shmuelzon/pyituran
  • Loading branch information
fabaff committed Dec 11, 2024
1 parent 50bc93c commit e45aeef
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/pyituran/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit e45aeef

Please sign in to comment.