uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/development/python-modules/libpurecool/default.nix
Normal file
47
pkgs/development/python-modules/libpurecool/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, netifaces
|
||||
, paho-mqtt
|
||||
, pycryptodome
|
||||
, requests
|
||||
, six
|
||||
, zeroconf
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libpurecool";
|
||||
version = "0.6.4";
|
||||
|
||||
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 "from .zeroconf import ServiceBrowser, Zeroconf" "from zeroconf import ServiceBrowser, Zeroconf"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue