mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
Merge pull request #58035 from dotlambda/python-fixes
pythonPackages: multiple fixes
This commit is contained in:
commit
22bb090ed1
@ -1,5 +1,6 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, click, jinja2, terminaltables }:
|
||||
, mock, jinja2, click, terminaltables
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "envs";
|
||||
@ -10,7 +11,7 @@ buildPythonPackage rec {
|
||||
sha256 = "ccf5cd85ddb8ed335e39ed8a22e0d23658f5a6d7da430f225e6f750c6f50ae42";
|
||||
};
|
||||
|
||||
checkInputs = [ click jinja2 terminaltables ];
|
||||
checkInputs = [ mock jinja2 click terminaltables ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy access to environment variables from Python";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, setuptools-git, pytest-shutil, pytest-fixture-config, psutil
|
||||
, requests, future }:
|
||||
, pytest_3, pytest-shutil, pytest-fixture-config, psutil
|
||||
, requests, future, retry }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-server-fixtures";
|
||||
@ -11,8 +11,8 @@ buildPythonPackage rec {
|
||||
sha256 = "c89f9532f62cf851489082ece1ec692b6ed5b0f88f20823bea25e2a963ebee8f";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ setuptools-git pytest-shutil pytest-fixture-config psutil requests future ];
|
||||
buildInputs = [ pytest_3 ];
|
||||
propagatedBuildInputs = [ pytest-shutil pytest-fixture-config psutil requests future retry ];
|
||||
|
||||
# RuntimeError: Unable to find a free server number to start Xvfb
|
||||
doCheck = false;
|
||||
|
@ -8,7 +8,16 @@
|
||||
, pycairo
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
let
|
||||
boost = pkgs.boost.override {
|
||||
enablePython = true;
|
||||
inherit python;
|
||||
};
|
||||
mapnik = pkgs.mapnik.override {
|
||||
inherit python boost;
|
||||
};
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "python-mapnik";
|
||||
version = "3.0.16";
|
||||
|
||||
@ -28,25 +37,25 @@ buildPythonPackage rec {
|
||||
export BOOST_THREAD_LIB="boost_thread"
|
||||
export BOOST_SYSTEM_LIB="boost_system"
|
||||
'';
|
||||
buildInputs = with pkgs; [
|
||||
(boost.override {
|
||||
enablePython = true;
|
||||
inherit python;
|
||||
})
|
||||
(mapnik.override {
|
||||
inherit python;
|
||||
boost = (boost.override { enablePython = true; inherit python; });
|
||||
})
|
||||
cairo
|
||||
harfbuzz
|
||||
icu
|
||||
libjpeg
|
||||
libpng
|
||||
libtiff
|
||||
libwebp
|
||||
proj
|
||||
zlib
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
mapnik # for mapnik_config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
mapnik
|
||||
boost
|
||||
] ++ (with pkgs; [
|
||||
cairo
|
||||
harfbuzz
|
||||
icu
|
||||
libjpeg
|
||||
libpng
|
||||
libtiff
|
||||
libwebp
|
||||
proj
|
||||
zlib
|
||||
]);
|
||||
propagatedBuildInputs = [ pillow pycairo ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
43
pkgs/development/python-modules/retry/default.nix
Normal file
43
pkgs/development/python-modules/retry/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pbr
|
||||
, decorator
|
||||
, py
|
||||
, mock
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "retry";
|
||||
version = "0.9.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pbr
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
decorator
|
||||
py
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy to use retry decorator";
|
||||
homepage = https://github.com/invl/retry;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pytest_3
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
@ -16,9 +16,13 @@ buildPythonPackage rec {
|
||||
sha256 = "1s4radwf38kdh3jrn5acbidqlr66sx786fkwi0rgq61hn4n2bdqw";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
checkInputs = [ pytest_3 ];
|
||||
|
||||
doCheck = false; # v0.6 is broken with recent pytest 4.x
|
||||
postPatch = ''
|
||||
# fails
|
||||
substituteInPlace tests/test_transport_http.py \
|
||||
--replace "test_sending_unicode_data" "noop"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight SOAP client (Jurko's fork)";
|
||||
|
@ -16,7 +16,8 @@ buildPythonPackage rec {
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "TileStache";
|
||||
inherit version;
|
||||
sha256 = "11e15dd85501345bcfeb18dce5b1c8fb74ac8d867df2520afe0eefe1edd85f27";
|
||||
};
|
||||
|
||||
|
@ -4092,6 +4092,8 @@ in {
|
||||
|
||||
restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { };
|
||||
|
||||
retry = callPackage ../development/python-modules/retry { };
|
||||
|
||||
robomachine = callPackage ../development/python-modules/robomachine { };
|
||||
|
||||
robotframework = callPackage ../development/python-modules/robotframework { };
|
||||
|
Loading…
Reference in New Issue
Block a user