Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2018-11-04 08:49:24 +01:00
74 changed files with 833 additions and 2960 deletions

View File

@@ -0,0 +1,28 @@
{ lib, fetchPypi, buildPythonPackage
, pyaes, pycrc }:
buildPythonPackage rec {
pname = "broadlink";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "10dnd859yjh1h6qrxhvkslbsj5fh5g654xsq2yqblkkv3xd711rs";
};
postPatch = ''
substituteInPlace setup.py \
--replace pyaes==1.6.0 pyaes
'';
propagatedBuildInputs = [ pyaes pycrc ];
# no tests available
doCheck = false;
meta = with lib; {
description = "Python API for controlling Broadlink IR controllers";
homepage = http://github.com/mjg59/python-broadlink;
license = licenses.mit;
};
}

View File

@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub, buildPythonPackage
, openssl, pytest, cffi, six }:
buildPythonPackage rec {
pname = "fastpbkdf2";
version = "0.2";
# Fetching from GitHub as tests are missing in PyPI
src = fetchFromGitHub {
owner = "Ayrx";
repo = "python-fastpbkdf2";
rev = "v${version}";
sha256 = "1hvvlk3j28i6nswb6gy3mq7278nq0mgfnpxh1rv6jvi7xhd7qmlc";
};
buildInputs = [ openssl ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ cffi six ];
meta = with stdenv.lib; {
homepage = https://github.com/Ayrx/python-fastpbkdf2;
description = "Python bindings for fastpbkdf2";
license = licenses.bsd3;
maintainers = with maintainers; [ jqueiroz ];
};
}