at master 927 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 pyserial, 6 pytestCheckHook, 7 setuptools, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "aurorapy"; 13 version = "0.2.7"; 14 pyproject = true; 15 16 src = fetchFromGitLab { 17 owner = "energievalsabbia"; 18 repo = "aurorapy"; 19 rev = version; 20 hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec="; 21 }; 22 23 postPatch = '' 24 sed -i "/from past.builtins import map/d" aurorapy/client.py 25 ''; 26 27 build-system = [ setuptools ]; 28 29 pythonRemoveDeps = [ "future" ]; 30 31 dependencies = [ pyserial ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 six 36 ]; 37 38 pythonImportsCheck = [ "aurorapy" ]; 39 40 meta = with lib; { 41 description = "Implementation of the communication protocol for Power-One Aurora inverters"; 42 homepage = "https://gitlab.com/energievalsabbia/aurorapy"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}