Merge branch 'master' into staging-next
There were several more conflicts from name -> pname+version; all auto-solved by kdiff3, hopefully OK. Hydra nixpkgs: ?compare=1538611
This commit is contained in:
@@ -3,20 +3,19 @@
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, gevent
|
||||
, gunicorn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gevent-websocket";
|
||||
version = "0.10.1";
|
||||
# SyntaxError in tests.
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1c2zv2rahp1gil3cj66hfsqgy0n35hz9fny3ywhr2319d0lz7bky";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ gevent ];
|
||||
propagatedBuildInputs = [ gevent gunicorn ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.gitlab.com/noppo/gevent-websocket;
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, requests, geojson }:
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyowm";
|
||||
version = "2.10.0";
|
||||
|
||||
disabled = pythonOlder "3.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8fd41a18536f4d6c432bc6d9ea69994efb1ea9b43688cf19523659b6f4d86cf7";
|
||||
@@ -14,8 +16,7 @@ buildPythonPackage rec {
|
||||
# This may actually break the package.
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "requests>=2.18.2,<2.19" "requests" \
|
||||
--replace "geojson>=2.3.0,<2.4" "geojson<2.5,>=2.3.0"
|
||||
--replace "requests>=2.18.2,<2.19" "requests"
|
||||
'';
|
||||
|
||||
# No tests in archive
|
||||
|
||||
@@ -21,13 +21,13 @@ in
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-language-server";
|
||||
version = "0.27.0";
|
||||
version = "0.28.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "palantir";
|
||||
repo = "python-language-server";
|
||||
rev = version;
|
||||
sha256 = "158wxj2w880jrab7mi4fb3xqnjhmfixqacxjp7whf7jy3zxqrq38";
|
||||
sha256 = "0xa0zw7hlfqqa305ic4csgfmlbxhklb5xzx72mfkcz8gcc0f5qwd";
|
||||
};
|
||||
|
||||
# The tests require all the providers, disable otherwise.
|
||||
|
||||
43
pkgs/development/python-modules/xapian/default.nix
Normal file
43
pkgs/development/python-modules/xapian/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ lib, buildPythonPackage, fetchurl, python
|
||||
, sphinx
|
||||
, xapian
|
||||
}:
|
||||
|
||||
let
|
||||
pythonSuffix = lib.optionalString python.isPy3k "3";
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "xapian";
|
||||
inherit (xapian) version;
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz";
|
||||
sha256 = "0j9awiiw9zf97r60m848absq43k37gghpyw7acxqjazfzd71fxvm";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--with-python${pythonSuffix}"
|
||||
"PYTHON${pythonSuffix}_LIB=${placeholder "out"}/${python.sitePackages}"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
export XAPIAN_CONFIG=${xapian}/bin/xapian-config
|
||||
'';
|
||||
|
||||
buildInputs = [ sphinx xapian ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} python${pythonSuffix}/smoketest.py
|
||||
${python.interpreter} python${pythonSuffix}/pythontest.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Bindings for Xapian";
|
||||
homepage = https://xapian.org/;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user