Files
nixpkgs/pkgs/development/python-modules/aurorapy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
925 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
pyserial,
pytestCheckHook,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "aurorapy";
version = "0.2.7";
pyproject = true;
src = fetchFromGitLab {
owner = "energievalsabbia";
repo = "aurorapy";
rev = version;
hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec=";
};
postPatch = ''
sed -i "/from past.builtins import map/d" aurorapy/client.py
'';
build-system = [ setuptools ];
pythonRemoveDeps = [ "future" ];
dependencies = [ pyserial ];
nativeCheckInputs = [
pytestCheckHook
six
];
pythonImportsCheck = [ "aurorapy" ];
meta = {
description = "Implementation of the communication protocol for Power-One Aurora inverters";
homepage = "https://gitlab.com/energievalsabbia/aurorapy";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}