mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
Merge branch 'master' into staging-next
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansi";
|
||||
version = "0.1.5";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02sknsbx55r6nylznslmmzzkfi3rsw7akpyzi6f1bqvr2ila8p0f";
|
||||
sha256 = "98e9b27c4bb187867a69480cbc63b843331622fec7e7d090873d806e1b5d8a80";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
# propagatedBuildInputs
|
||||
, aiohttp
|
||||
# buildInputs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aresponses";
|
||||
version = "2.0.0";
|
||||
version = "2.1.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "58693a6b715edfa830a20903ee1d1b2a791251923f311b3bebf113e8ff07bb35";
|
||||
src = fetchFromGitHub {
|
||||
owner = "CircleUp";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0dc1y4s6kpmr0ar63kkyghvisgbmb8qq5wglmjclrpzd5180mjcl";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -29,13 +30,24 @@ buildPythonPackage rec {
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
# tests only distributed via git repository, not pypi
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
aiohttp
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
# Disable tests which requires network access
|
||||
disabledTests = [
|
||||
"test_foo"
|
||||
"test_passthrough"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "aresponses" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asyncio testing server";
|
||||
homepage = "https://github.com/circleup/aresponses";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.makefu ];
|
||||
maintainers = with maintainers; [ makefu ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boto3";
|
||||
version = "1.16.51"; # N.B: if you change this, change botocore too
|
||||
version = "1.16.55"; # N.B: if you change this, change botocore too
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-EdxJJoLPKk+P85ewoQmDc0Dvk+d8ouZXFc4k7PBDcXw=";
|
||||
sha256 = "sha256-tQUhRANOSQNYxlnQ5IDBek5gT9Ou6al93+bjYaJFpKU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "botocore";
|
||||
version = "1.19.51"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
version = "1.19.55"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-sgTFtHewQ8f2HLpdtHnGsl9oT3QJtxqOzbWms/V7XLQ=";
|
||||
sha256 = "sha256-s0Mn2Es7tWIPtUYDZ3qalzsWcpDCweeracSkayAcbUY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,30 +1,42 @@
|
||||
{ lib, stdenv
|
||||
{ lib
|
||||
, async_generator
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, geographiclib
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopy-unstable";
|
||||
version = "2019-11-10";
|
||||
|
||||
pname = "geopy";
|
||||
version = "2.1.0";
|
||||
disabled = !isPy3k; # only Python 3
|
||||
doCheck = false; # Needs network access
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0239a4achk49ngagb6aqy6cgzfwgbxir07vwi13ysbpx78y0l4g9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ geographiclib ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "geopy";
|
||||
repo = "geopy";
|
||||
rev = "531b7de6126838a3e69370227aa7f2086ba52b89";
|
||||
sha256 = "07l1pblzg3hb3dbvd9rq8x78ly5dv0zxbc5hwskqil0bhv5v1p39";
|
||||
};
|
||||
checkInputs = [
|
||||
async_generator
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Exclude tests which perform API calls
|
||||
pytestFlagsArray = [ "--ignore test/geocoders/" ];
|
||||
pythonImportsCheck = [ "geopy" ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/geopy/geopy";
|
||||
description = "Python Geocoding Toolbox";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [GuillaumeDesforges];
|
||||
changelog = "https://github.com/geopy/geopy/releases/tag/${version}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ GuillaumeDesforges ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,15 +8,16 @@
|
||||
, scipy
|
||||
# check inputs
|
||||
, pytestCheckHook
|
||||
, cvxopt
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "osqp";
|
||||
version = "0.6.2";
|
||||
version = "0.6.2.post0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "262162039f6ad6c9ffee658541b18cfae8240b65edbde71d9b9e3af42fbfe4b3";
|
||||
sha256 = "5f0695f26a3bef0fae91254bc283fab790dcca0064bfe0f425167f9c9e8b4cbc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
@@ -30,18 +31,10 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "osqp" ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
checkInputs = [ pytestCheckHook cvxopt ];
|
||||
disabledTests = [
|
||||
"mkl_"
|
||||
];
|
||||
pytestFlagsArray = [
|
||||
# These cannot collect b/c of circular dependency on cvxpy: https://github.com/oxfordcontrol/osqp-python/issues/50
|
||||
"--ignore=module/tests/basic_test.py"
|
||||
"--ignore=module/tests/feasibility_test.py"
|
||||
"--ignore=module/tests/polishing_test.py"
|
||||
"--ignore=module/tests/unconstrained_test.py"
|
||||
"--ignore=module/tests/update_matrices_test.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Operator Splitting QP Solver";
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyGithub";
|
||||
version = "1.51";
|
||||
version = "1.54.1";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyGithub";
|
||||
repo = "PyGithub";
|
||||
rev = "v${version}";
|
||||
sha256 = "1hz5fc3rkryl4vzxmmwx75p25wk0ida54lf6bz7261rm5hb05r7j";
|
||||
sha256 = "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq";
|
||||
};
|
||||
|
||||
checkInputs = [ httpretty parameterized pytestCheckHook ];
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, aiohttp, deepmerge, yarl
|
||||
, aresponses, pytest, pytest-asyncio, pytestcov }:
|
||||
{ lib
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, buildPythonPackage
|
||||
, deepmerge
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, yarl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyipp";
|
||||
version = "0.11.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ctalkington";
|
||||
@@ -22,14 +29,26 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytest
|
||||
pytest-asyncio
|
||||
pytestcov
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest -q .
|
||||
'';
|
||||
# Some tests are failing due to encoding issues
|
||||
# https://github.com/ctalkington/python-ipp/issues/121
|
||||
disabledTests = [
|
||||
"test_internal_session"
|
||||
"test_request_port"
|
||||
"est_http_error426"
|
||||
"test_unexpected_response"
|
||||
"test_printer"
|
||||
"test_raw"
|
||||
"test_ipp_request"
|
||||
"test_request_tls"
|
||||
"test_ipp_error_0x0503"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyipp" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
|
||||
|
||||
25
pkgs/development/python-modules/pysoma/default.nix
Normal file
25
pkgs/development/python-modules/pysoma/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysoma";
|
||||
version = "0.0.10";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1q8afi6m3mfh0rfpghyvx6z76kgrpkbnlqzbs4p8ax13n0fnlkdi";
|
||||
};
|
||||
|
||||
# Project has no test
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "api" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for the HTTP API provided by SOMA Connect";
|
||||
homepage = "https://pypi.org/project/pysoma";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -9,10 +9,18 @@
|
||||
, python
|
||||
, doxygen
|
||||
, ncurses
|
||||
, wxGTK
|
||||
, libintl
|
||||
, numpy
|
||||
, pillow
|
||||
, six
|
||||
, wxGTK
|
||||
, wxmac
|
||||
, IOKit
|
||||
, Carbon
|
||||
, Cocoa
|
||||
, AudioToolbox
|
||||
, OpenGL
|
||||
, CoreFoundation
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -26,8 +34,16 @@ buildPythonPackage rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig which doxygen wxGTK ];
|
||||
buildInputs = [ ncurses wxGTK.gtk ];
|
||||
nativeBuildInputs = [ pkgconfig which doxygen ]
|
||||
++ (if stdenv.isDarwin then [ wxmac ] else [ wxGTK ]);
|
||||
|
||||
buildInputs = [ ncurses libintl ]
|
||||
++ (if stdenv.isDarwin
|
||||
then
|
||||
[ AudioToolbox Carbon Cocoa CoreFoundation IOKit OpenGL ]
|
||||
else
|
||||
[ wxGTK.gtk ]
|
||||
);
|
||||
|
||||
DOXYGEN = "${doxygen}/bin/doxygen";
|
||||
|
||||
@@ -50,7 +66,7 @@ buildPythonPackage rec {
|
||||
${python.interpreter} setup.py install --skip-build --prefix=$out
|
||||
'';
|
||||
|
||||
passthru = { inherit wxGTK; };
|
||||
passthru = { wxWidgets = if stdenv.isDarwin then wxmac else wxGTK; };
|
||||
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user