nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 904 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 requests, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "oemthermostat"; 12 version = "1.1.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Cadair"; 17 repo = "openenergymonitor_thermostat"; 18 tag = "v${version}"; 19 hash = "sha256-vrMw3/X8MtejO1WyUA1DOlfVCPTCPgcK5p3+OlTWcM4="; 20 }; 21 22 build-system = [ setuptools-scm ]; 23 24 dependencies = [ requests ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "oemthermostat" ]; 29 30 meta = { 31 description = "Python module to interact with OpenEnergyMonitor thermostats"; 32 homepage = "https://github.com/Cadair/openenergymonitor_thermostat"; 33 changelog = "https://github.com/Cadair/openenergymonitor_thermostat/blob/v${version}/CHANGELOG.rst"; 34 license = lib.licenses.bsd3; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37}