Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 52 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchPypi, setuptools, netifaces, paho-mqtt, pycryptodome, requests, six, zeroconf,}:
buildPythonPackage rec { pname = "libpurecool"; version = "0.6.4"; pyproject = true;
src = fetchPypi { inherit pname version; sha256 = "1kwbinbg0i4fca1bpx6jwa1fiw71vg0xa89jhq4pmnl5cn9c8kqx"; };
# Remove vendorized zeroconf, https://github.com/etheralm/libpurecool/issues/33 postPatch = '' rm libpurecool/zeroconf.py substituteInPlace libpurecool/dyson_pure_cool_link.py \ --replace-fail "from .zeroconf import ServiceBrowser, Zeroconf" "from zeroconf import ServiceBrowser, Zeroconf" '';
build-system = [ setuptools ];
dependencies = [ netifaces paho-mqtt pycryptodome requests six zeroconf ];
# Tests are only present in repo, https://github.com/etheralm/libpurecool/issues/36 doCheck = false; pythonImportsCheck = [ "libpurecool" ];
meta = with lib; { description = "Python library for Dyson devices"; homepage = "http://libpurecool.readthedocs.io"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };}