Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, fetchFromGitLab, pyserial, pytestCheckHook, setuptools, six,}:
buildPythonPackage (finalAttrs: { pname = "aurorapy"; version = "0.3"; pyproject = true;
src = fetchFromGitLab { owner = "energievalsabbia"; repo = "aurorapy"; tag = finalAttrs.version; hash = "sha256-bc5i2x35sZXkCSJraTqX3Zc5B9eKL1qDh97/7ixyHLY="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail 'version="0.2.7"' 'version="${finalAttrs.version}"'
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 = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})