Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2020-01-02 21:41:13 +01:00
118 changed files with 2412 additions and 2737 deletions

View File

@@ -0,0 +1,49 @@
{ stdenv
, buildPythonPackage
, django
, netaddr
, six
, fetchFromGitHub
# required for tests
#, djangorestframework
#, psycopg2
#, unittest2
}:
buildPythonPackage rec {
version = "1.2.2";
pname = "django-postgresql-netfields";
src = fetchFromGitHub {
owner = "jimfunk";
repo = "${pname}";
rev = "v${version}";
sha256 = "1rrh38f3zl3jk5ijs6g75dxxvxygf4lczbgc7ahrgzf58g4a48lm";
};
# tests need a postgres database
doCheck = false;
# keeping the dependencies below as comment for reference
# checkPhase = ''
# python manage.py test
# '';
# buildInputs = [
# djangorestframework
# psycopg2
# unittest2
# ];
propagatedBuildInputs = [
django
netaddr
six
];
meta = with stdenv.lib; {
description = "Django PostgreSQL netfields implementation";
homepage = https://github.com/jimfunk/django-postgresql-netfields;
license = licenses.bsd2;
};
}

View File

@@ -10,5 +10,6 @@ python_openzwave.overridePythonAttrs (oldAttrs: rec {
sha256 = "2d500638270ee4f0e7e9e114d9b4402c94c232f314116cdcf88d7c1dc9a44427";
};
patches = [];
meta.homepage = https://github.com/home-assistant/python-openzwave;
})

View File

@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, python
}:
buildPythonPackage rec {
pname = "junitparser";
version = "1.4.1";
src = fetchFromGitHub {
owner = "gastlygem";
repo = pname;
rev = version;
sha256 = "16xwayr0rbp7xdg7bzmyf8s7al0dhkbmkcnil66ax7r8bznp5lmp";
};
propagatedBuildInputs = [ future ];
checkPhase = ''
${python.interpreter} test.py
'';
meta = with lib; {
description = "A JUnit/xUnit Result XML Parser";
license = licenses.asl20;
homepage = https://github.com/gastlygem/junitparser;
maintainers = with maintainers; [ multun ];
};
}

View File

@@ -0,0 +1,50 @@
{ lib
, blas
, buildPythonPackage
, cffi
, fetchFromGitHub
, liblapack
, nose
, numpy
, openblas
, useOpenblas ? true
}:
buildPythonPackage {
pname = "prox-tv";
version = "3.3.0";
src = fetchFromGitHub {
owner = "albarji";
repo = "proxTV";
rev = "e621585d5aaa7983fbee68583f7deae995d3bafb";
sha256 = "0mlrjbb5rw78dgijkr3bspmsskk6jqs9y7xpsgs35i46dvb327q5";
};
patches = lib.optional useOpenblas ./use-openblas.patch;
checkInputs = [
nose
];
propagatedBuildInputs = [
numpy
cffi
];
buildInputs = (
if useOpenblas then
[ openblas ]
else
[ blas liblapack ]
);
enableParallelBuilding = true;
meta = with lib; {
homepage = https://github.com/albarji/proxTV;
description = "A toolbox for fast Total Variation proximity operators";
license = licenses.bsd2;
maintainers = with maintainers; [ multun ];
};
}

View File

@@ -0,0 +1,11 @@
index f100b35..448bbaf 100644
--- a/prox_tv/prox_tv_build.py
+++ b/prox_tv/prox_tv_build.py
@@ -109,6 +109,6 @@ ffi.set_source(
define_macros=[('NOMATLAB', 1)],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
- libraries=['blas', 'lapack'],
+ libraries=['openblas'],
include_dirs=['/usr/include']
)

View File

@@ -0,0 +1,20 @@
diff --git a/pyozw_setup.py b/pyozw_setup.py
index b201840..37bf2a8 100644
--- a/pyozw_setup.py
+++ b/pyozw_setup.py
@@ -257,13 +257,13 @@ class Template(object):
if sys.platform.startswith("win"):
return ['Cython']
else:
- return ['Cython==0.28.6']
+ return ['Cython>=0.28.6']
def build_requires(self):
if sys.platform.startswith("win"):
return ['Cython']
else:
- return ['Cython==0.28.6']
+ return ['Cython>=0.28.6']
def build(self):
if len(self.ctx['extra_objects']) == 1 and os.path.isfile(self.ctx['extra_objects'][0]):

View File

@@ -1,6 +1,6 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, pkgconfig
, systemd, libyaml, openzwave, cython
, systemd, libyaml, openzwave, cython, pyserial
, six, pydispatcher, urwid }:
buildPythonPackage rec {
@@ -17,7 +17,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ systemd libyaml openzwave cython ];
propagatedBuildInputs = [ six urwid pydispatcher ];
propagatedBuildInputs = [ six urwid pydispatcher pyserial ];
# primary location for the .xml files is in /etc/openzwave so we override the
# /usr/local/etc lookup instead as that allows us to dump new .xml files into
@@ -27,6 +27,8 @@ buildPythonPackage rec {
--replace /usr/local/etc/openzwave ${openzwave}/etc/openzwave
'';
patches = [ ./cython.patch ];
# no tests available
doCheck = false;

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "stm32loader";
version = "0.5.0";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "1w6jg4dcyz6si6dcyx727sxi75wnl0j89xkiwqmsw286s1y8ijjw";
sha256 = "0135qzxlrivvkq6wgkw7shfz94n755qs2c1754p1hc2jk0nqayrg";
};
propagatedBuildInputs = [ progress pyserial ];