mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
Merge master into staging-next
This commit is contained in:
44
pkgs/development/python-modules/aiosmb/default.nix
Normal file
44
pkgs/development/python-modules/aiosmb/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, asysocks
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, minikerberos
|
||||
, prompt_toolkit
|
||||
, pythonOlder
|
||||
, six
|
||||
, tqdm
|
||||
, winacl
|
||||
, winsspi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiosmb";
|
||||
version = "0.2.37";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0daf1fk7406vpywc0yxv0wzf4nw986js9lc2agfyfxz0q7s29lf0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
minikerberos
|
||||
winsspi
|
||||
six
|
||||
asysocks
|
||||
tqdm
|
||||
prompt_toolkit
|
||||
winacl
|
||||
];
|
||||
|
||||
# Project doesn't have tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "aiosmb" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python SMB library";
|
||||
homepage = "https://github.com/skelsec/aiosmb";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -2,33 +2,31 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, pandas
|
||||
, pytestrunner
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awkward0";
|
||||
version = "0.15.2";
|
||||
version = "0.15.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "scikit-hep";
|
||||
repo = "awkward-0.x";
|
||||
rev = version;
|
||||
sha256 = "sha256-C6/byIGcabGjws5QI9sh5BO2M4Lhqkooh4mSjUEKCKU=";
|
||||
sha256 = "039pxzgll2yz8xpr6bw788ymvgvqgna5kgl9m6d9mzi4yhbjsjpx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
checkInputs = [ pandas pytestCheckHook ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
checkPhase = ''
|
||||
# Almost all tests in this file fail
|
||||
rm tests/test_persist.py
|
||||
py.test
|
||||
'';
|
||||
# Can't find a fixture
|
||||
disabledTests = [ "test_import_pandas" ];
|
||||
|
||||
pythonImportsCheck = [ "awkward0" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
|
||||
|
||||
@@ -18,6 +18,26 @@ buildPythonPackage rec {
|
||||
sha256 = "16f410izp2c4qhn4n3l5l3qirmkf43h2amjqms8hkl0shgfqwq2n";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# 1/3 Fix compatibility with pytest 6. Will be part of the next release after 18.6
|
||||
(fetchpatch {
|
||||
url = "https://github.com/cherrypy/cherrypy/pull/1897/commits/59c0e19d7df8680e36afc96756dce72435121448.patch";
|
||||
sha256 = "1jachbvp505gndccdhny0c3grzdrmvmbzq4kw55jx93ay94ni6p0";
|
||||
})
|
||||
# 2/3 Fix compatibility with pytest 6. Will be part of the next release after 18.6
|
||||
(fetchpatch {
|
||||
url = "https://github.com/cherrypy/cherrypy/pull/1897/commits/4a6287b73539adcb7b0ae72d69644a1ced1f7eaa.patch";
|
||||
sha256 = "0nz40qmgxknkbjsdzfzcqfxdsmsxx3v104fb0h04yvs76mqvw3i4";
|
||||
})
|
||||
# 3/3 Fix compatibility with pytest 6. Will be part of the next release after 18.6
|
||||
(fetchpatch {
|
||||
url = "https://github.com/cherrypy/cherrypy/commit/3bae7f06868553b006915f05ff14d86163f59a7d.patch";
|
||||
sha256 = "1z0bv23ybyw87rf1i8alsdi3gc2bzmdj9d0kjsghdkvi3zdp4n8q";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# required
|
||||
cheroot portend more-itertools zc_lockfile
|
||||
@@ -26,8 +46,6 @@ buildPythonPackage rec {
|
||||
routes
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
checkInputs = [
|
||||
objgraph pytest pytestcov pathpy requests_toolbelt pytest-services
|
||||
];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, pari
|
||||
, gmp
|
||||
@@ -11,13 +12,23 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "cypari2";
|
||||
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
|
||||
version = "2.1.1";
|
||||
version = "2.1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "df1ef62e771ec36e5a456f5fc8b51bc6745b70f0efdd0c7a30c3f0b5f1fb93db";
|
||||
sha256 = "03cd45edab8716ebbfdb754e65fea72e873c73dc91aec098fe4a01e35324ac7a";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# patch to avoid some segfaults in sage's totallyreal.pyx test.
|
||||
# (https://trac.sagemath.org/ticket/27267). depends on Cython patch.
|
||||
(fetchpatch {
|
||||
name = "use-trashcan-for-gen.patch";
|
||||
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/cypari/patches/trashcan.patch?id=b6ea17ef8e4d652de0a85047bac8d41e90b25555";
|
||||
sha256 = "sha256-w4kktWb9/aR9z4CjrUvAMOxEwRN2WkubaKzQttN8rU8=";
|
||||
})
|
||||
];
|
||||
|
||||
# This differs slightly from the default python installPhase in that it pip-installs
|
||||
# "." instead of "*.whl".
|
||||
# That is because while the default install phase succeeds to build the package,
|
||||
@@ -48,7 +59,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cython bindings for PARI";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = teams.sage.members;
|
||||
homepage = "https://github.com/defeo/cypari2";
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ lib
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
@@ -10,23 +9,13 @@ assert pariSupport -> pari != null;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cysignals";
|
||||
version = "1.10.2";
|
||||
version = "1.10.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ckxzch3wk5cg80mppky5jib5z4fzslny3001r5zg4ar1ixbc1w1";
|
||||
sha256 = "sha256-XEYGxDV3UCgxb3Jf23y4lOPK4Lb9L4YqDSlxdIRptDo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes intermittent crashes in Sage tests (including in interfaces/singular.py)
|
||||
# will be included in cysignals 1.10.3: https://github.com/sagemath/cysignals/pull/127
|
||||
(fetchpatch {
|
||||
name = "fix-verify_exc_value.patch";
|
||||
url = "https://github.com/sagemath/cysignals/commit/49a7eee4bba3ab8f340cf56c371fa4f5ed702dcc.patch";
|
||||
sha256 = "sha256-Pfc5tL9VDSP6ftDoHoIb+MDi5rjYqr0PRfIajFuuYVs=";
|
||||
})
|
||||
];
|
||||
|
||||
# explicit check:
|
||||
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
|
||||
hardeningDisable = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchPypi, fetchpatch, buildPythonPackage, pkg-config, pytest, fuse, attr, which
|
||||
, contextlib2, macfuse-stubs, DiskArbitration
|
||||
, contextlib2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -21,9 +21,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs =
|
||||
lib.optionals stdenv.isLinux [ fuse ]
|
||||
++ lib.optionals stdenv.isDarwin [ DiskArbitration macfuse-stubs ];
|
||||
buildInputs = [ fuse ];
|
||||
|
||||
checkInputs = [ pytest which ] ++
|
||||
lib.optionals stdenv.isLinux [ attr ];
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
, fetchPypi
|
||||
, nose
|
||||
, pygments
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.9.2";
|
||||
pname = "piep";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{ lib
|
||||
, aiosmb
|
||||
, aiowinreg
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
, minidump
|
||||
, minikerberos
|
||||
, msldap
|
||||
@@ -10,16 +11,15 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pypykatz";
|
||||
version = "0.4.3";
|
||||
version = "0.4.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "skelsec";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-ows6zJyygdAwgKNKKCURWX+kl42f3CN23/xZrLjkfrw=";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0il5sj47wyf9gn76alm8v1l63rqw2vsd27v6f7q1dpn0wq209syi";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiosmb
|
||||
aiowinreg
|
||||
minikerberos
|
||||
msldap
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, pythonOlder
|
||||
, nose
|
||||
, lxml
|
||||
, requests
|
||||
@@ -10,7 +10,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pyxnat";
|
||||
version = "1.4";
|
||||
disabled = isPy27;
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@@ -19,6 +19,14 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ lxml requests ];
|
||||
|
||||
# future is not used, and pathlib is installed part of python38+
|
||||
# w/o an external package
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pathlib>=1.0" "" \
|
||||
--replace "future>=0.16" ""
|
||||
'';
|
||||
|
||||
checkInputs = [ nose ];
|
||||
checkPhase = "nosetests pyxnat/tests";
|
||||
doCheck = false; # requires a docker container running an XNAT server
|
||||
|
||||
36
pkgs/development/python-modules/solaredge/default.nix
Normal file
36
pkgs/development/python-modules/solaredge/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "solaredge";
|
||||
version = "0.0.4";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0q4gib0l3qnlpncg84ki027vr1apjlr47vd6845rpk7zkm8lqgfz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-dateutil
|
||||
pytz
|
||||
requests
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "solaredge" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for Solaredge monitoring service";
|
||||
homepage = "https://github.com/bertouttier/solaredge";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user