Merge master into staging
This commit is contained in:
29
pkgs/development/python-modules/Rtree/default.nix
Normal file
29
pkgs/development/python-modules/Rtree/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, libspatialindex, numpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Rtree";
|
||||
version = "0.8.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0jc62jbcqqpjcwcly7l9zk25bg72mrxmjykpvfiscgln00qczfbc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libspatialindex ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace rtree/core.py --replace \
|
||||
"find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
# Tests appear to be broken due to mysterious memory unsafe issues. See #36760
|
||||
doCheck = false;
|
||||
checkInputs = [ numpy ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "R-Tree spatial index for Python GIS";
|
||||
homepage = https://toblerity.org/rtree/;
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ bgamari ];
|
||||
};
|
||||
}
|
||||
@@ -1,23 +1,23 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, pillow, click, dlib, numpy
|
||||
, face_recognition_models, scipy, stdenv, flake8, tox, pytest, glibcLocales
|
||||
, face_recognition_models, stdenv, flake8, tox, pytest, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "face_recognition";
|
||||
version = "1.2.1";
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = "ageitgey";
|
||||
rev = "fe421d4acd76e8a19098e942b7bd9c3bbef6ebc4"; # no tags available in Git, pure revs are pushed to pypi
|
||||
sha256 = "0wv5qxkg7xv1cr43zhhbixaqgj08xw2l7yvwl8g3fb2kdxyndw1c";
|
||||
rev = "v${version}";
|
||||
sha256 = "17jnyr80j1p74gyvh1jabvwd3zsxvip2y7cjhh2g6gsjv2dpvrjv";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "flake8==2.6.0" "flake8"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models scipy ];
|
||||
propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models ];
|
||||
|
||||
checkInputs = [ flake8 tox pytest glibcLocales ];
|
||||
checkPhase = ''
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ fetchurl, stdenv, pkgconfig, python, pygobject3
|
||||
{ fetchurl, stdenv, meson, ninja, pkgconfig, python, pygobject3
|
||||
, gst-plugins-base, ncurses
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gst-python";
|
||||
version = "1.12.3";
|
||||
version = "1.14.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
@@ -12,22 +12,25 @@ stdenv.mkDerivation rec {
|
||||
"${meta.homepage}/src/gst-python/${name}.tar.xz"
|
||||
"mirror://gentoo/distfiles/${name}.tar.xz"
|
||||
];
|
||||
sha256 = "19rb06x2m7103zwfm0plxx95gb8bp01ng04h4q9k6ii9q7g2kxf3";
|
||||
sha256 = "1rlr6gl4lg97ng4jxh3gb2ldmywm15vwsa72nvggr8qa2l8q3fg0";
|
||||
};
|
||||
|
||||
patches = [ ./different-path-with-pygobject.patch ];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig python ];
|
||||
nativeBuildInputs = [ meson ninja pkgconfig python ];
|
||||
|
||||
# XXX: in the Libs.private field of python3.pc
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-pygi-overrides-dir=$(out)/${python.sitePackages}/gi/overrides"
|
||||
mesonFlags = [
|
||||
"-Dpygi-overrides-dir=${python.sitePackages}/gi/overrides"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x scripts/pythondetector # patchShebangs requires executable file
|
||||
patchShebangs scripts/pythondetector
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ gst-plugins-base pygobject3 ];
|
||||
|
||||
# Needed for python.buildEnv
|
||||
|
||||
26
pkgs/development/python-modules/vxi11/default.nix
Normal file
26
pkgs/development/python-modules/vxi11/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-vxi11";
|
||||
version = "0.9";
|
||||
|
||||
# no tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-ivi";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1xv7chp7rm0vrvbz6q57fpwhlgjz461h08q9zgmkcl2l0w96hmsn";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "VXI-11 driver for controlling instruments over Ethernet";
|
||||
homepage = https://github.com/python-ivi/python-vxi11;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bgamari ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user