Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 future, 6 pyserial, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10 six, 11}: 12 13buildPythonPackage rec { 14 pname = "aurorapy"; 15 version = "0.2.7"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitLab { 21 owner = "energievalsabbia"; 22 repo = pname; 23 rev = version; 24 hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ 30 future 31 pyserial 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 six 37 ]; 38 39 pythonImportsCheck = [ "aurorapy" ]; 40 41 meta = with lib; { 42 description = "Implementation of the communication protocol for Power-One Aurora inverters"; 43 homepage = "https://gitlab.com/energievalsabbia/aurorapy"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}