nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 867 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 umodbus, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "pysolarmanv5"; 12 version = "3.0.6"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "jmccrohan"; 17 repo = "pysolarmanv5"; 18 tag = "v${version}"; 19 hash = "sha256-ENEXuMQGQ1Jwgpfp2v0T2dveTJoIaVu+DfefQZy8ntE="; 20 }; 21 22 build-system = [ 23 setuptools 24 ]; 25 26 dependencies = [ 27 umodbus 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "pysolarmanv5" ]; 33 34 meta = { 35 description = "Python module to interact with Solarman Data Logging Sticks"; 36 changelog = "https://github.com/jmccrohan/pysolarmanv5/blob/${src.tag}/CHANGELOG.md"; 37 homepage = "https://github.com/jmccrohan/pysolarmanv5"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ Scrumplex ]; 40 }; 41}