nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pytestCheckHook, 6 setuptools, 7 pyserial, 8 openpyxl, 9}: 10 11buildPythonPackage rec { 12 pname = "pysunspec2"; 13 version = "1.3.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "sunspec"; 18 repo = "pysunspec2"; 19 tag = "v${version}"; 20 hash = "sha256-mVx8Rt5GLyQ2ss0iJPi32Fhl9pD7hsXxW94p+8ri+w4="; 21 fetchSubmodules = true; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 openpyxl 28 pyserial 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pytestFlags = [ 34 # This test relies on old pymodbus 2 version 35 "--ignore=sunspec2/tests/test_tls_client.py" 36 ]; 37 38 pythonImportsCheck = [ "sunspec2" ]; 39 40 meta = { 41 description = "Python library for interfacing with SunSpec devices"; 42 homepage = "https://github.com/sunspec/pysunspec2"; 43 changelog = "https://github.com/sunspec/pysunspec2/releases/tag/${src.tag}"; 44 license = lib.licenses.asl20; 45 maintainers = [ lib.maintainers.cheriimoya ]; 46 }; 47}