summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2021-07-03 12:06:58 +0200
committerVladimír Čunát <v@cunat.cz>2021-07-03 12:06:58 +0200
commit37d54f4445556f3571ee269e04a4ab89fc13a506 (patch)
tree3d9e263cc07beccf789d846df8789f9c00f99128 /pkgs/development/python-modules
parentRevert "stdenv bootstrap: upgrade x86_64-linux bootstrap tools & use temporar... (diff)
parentMerge pull request #126688 from Binary-Eater/polkit (diff)
downloadnixpkgs-origin/glibc-2.33.tar.gz
Merge branch 'staging' into glibc-2.33origin/glibc-2.33
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/aiocoap/default.nix32
-rw-r--r--pkgs/development/python-modules/aiomusiccast/default.nix43
-rw-r--r--pkgs/development/python-modules/aiopg/default.nix4
-rw-r--r--pkgs/development/python-modules/async-dns/default.nix15
-rw-r--r--pkgs/development/python-modules/daphne/default.nix4
-rw-r--r--pkgs/development/python-modules/debian-inspector/default.nix17
-rw-r--r--pkgs/development/python-modules/django/3.nix4
-rw-r--r--pkgs/development/python-modules/drms/default.nix12
-rw-r--r--pkgs/development/python-modules/editorconfig/default.nix18
-rw-r--r--pkgs/development/python-modules/extractcode/7z.nix5
-rw-r--r--pkgs/development/python-modules/extractcode/libarchive.nix4
-rw-r--r--pkgs/development/python-modules/flask-compress/default.nix4
-rw-r--r--pkgs/development/python-modules/greenlet/default.nix16
-rw-r--r--pkgs/development/python-modules/guppy3/default.nix4
-rw-r--r--pkgs/development/python-modules/malduck/default.nix6
-rw-r--r--pkgs/development/python-modules/mdformat/default.nix4
-rw-r--r--pkgs/development/python-modules/netmap/default.nix43
-rw-r--r--pkgs/development/python-modules/netmap/nmap-path.patch17
-rwxr-xr-xpkgs/development/python-modules/osmnx/default.nix11
-rw-r--r--pkgs/development/python-modules/pefile/default.nix32
-rw-r--r--pkgs/development/python-modules/pyahocorasick/default.nix4
-rw-r--r--pkgs/development/python-modules/pyeight/default.nix4
-rw-r--r--pkgs/development/python-modules/pyfreedompro/default.nix34
-rw-r--r--pkgs/development/python-modules/pyfritzhome/default.nix6
-rw-r--r--pkgs/development/python-modules/pypoint/default.nix35
-rw-r--r--pkgs/development/python-modules/pysyncobj/default.nix4
-rw-r--r--pkgs/development/python-modules/pytest-cases/default.nix4
-rw-r--r--pkgs/development/python-modules/python-telegram-bot/default.nix4
-rw-r--r--pkgs/development/python-modules/pytibber/default.nix4
-rw-r--r--pkgs/development/python-modules/qcelemental/default.nix21
-rw-r--r--pkgs/development/python-modules/rasterio/default.nix9
-rw-r--r--pkgs/development/python-modules/simber/default.nix4
-rw-r--r--pkgs/development/python-modules/skidl/default.nix18
-rw-r--r--pkgs/development/python-modules/splinter/default.nix5
-rw-r--r--pkgs/development/python-modules/sqlalchemy/default.nix6
-rw-r--r--pkgs/development/python-modules/tern/0001-Replace-debut-with-debian-inspector.patch40
-rw-r--r--pkgs/development/python-modules/tern/default.nix9
-rw-r--r--pkgs/development/python-modules/twitterapi/default.nix4
38 files changed, 326 insertions, 184 deletions
diff --git a/pkgs/development/python-modules/aiocoap/default.nix b/pkgs/development/python-modules/aiocoap/default.nix
index dd74a21bf9b8..e169b886f88e 100644
--- a/pkgs/development/python-modules/aiocoap/default.nix
+++ b/pkgs/development/python-modules/aiocoap/default.nix
@@ -1,24 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
-, python
+, pytestCheckHook
+, pygments
+, pythonOlder
}:
buildPythonPackage rec {
pname = "aiocoap";
- version = "0.4b3";
+ version = "0.4.1";
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "chrysn";
repo = pname;
rev = version;
- sha256 = "1zjg475xgvi19rqg7jmfgy5nfabq50aph0231p9jba211ps7cmxw";
+ sha256 = "0k7ii2l3n139f8712ja6w3z73xiwlfsjgdc4k5c514ni2w6w2yjc";
};
- checkPhase = ''
- ${python.interpreter} -m aiocoap.cli.defaults
- ${python.interpreter} -m unittest discover -v
- '';
+ propagatedBuildInputs = [
+ pygments
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ disabledTestPaths = [
+ # Don't test the plugins
+ "tests/test_tls.py"
+ "tests/test_reverseproxy.py"
+ "tests/test_oscore_plugtest.py"
+ ];
+
+ disabledTests = [
+ # Communication is not properly mocked
+ "test_uri_parser"
+ ];
pythonImportsCheck = [ "aiocoap" ];
diff --git a/pkgs/development/python-modules/aiomusiccast/default.nix b/pkgs/development/python-modules/aiomusiccast/default.nix
new file mode 100644
index 000000000000..e77642f510a7
--- /dev/null
+++ b/pkgs/development/python-modules/aiomusiccast/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, poetry-core
+, aiohttp
+}:
+
+buildPythonPackage rec {
+ pname = "aiomusiccast";
+ version = "0.8.1";
+
+ format = "pyproject";
+
+ disabled = pythonOlder "3.8";
+
+ src = fetchFromGitHub {
+ owner = "vigonotion";
+ repo = "aiomusiccast";
+ rev = version;
+ sha256 = "sha256-1k0ELXA8TgAyRYdzSFXp/BsPesC1WCiC4PqHfcPk0u8=";
+ };
+
+ nativeBuildInputs = [
+ poetry-core
+ ];
+
+ propagatedBuildInputs = [
+ aiohttp
+ ];
+
+ # upstream has no tests
+ doCheck = false;
+
+ pythonImportsCheck = [ "aiomusiccast" ];
+
+ meta = with lib; {
+ description = "Companion library for musiccast devices intended for the Home Assistant integration";
+ homepage = "https://github.com/vigonotion/aiomusiccast";
+ license = licenses.mit;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}
diff --git a/pkgs/development/python-modules/aiopg/default.nix b/pkgs/development/python-modules/aiopg/default.nix
index cb9cd327e8ce..36ea00234830 100644
--- a/pkgs/development/python-modules/aiopg/default.nix
+++ b/pkgs/development/python-modules/aiopg/default.nix
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "aiopg";
- version = "1.2.1";
+ version = "1.3.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
- sha256 = "0c6s2p1fjbdk1ygpl6a1s1rbnsk8gw9kj99pf98nxhb9j3iahas4";
+ sha256 = "sha256-/J53WqBag4ArSF7wETvmoBUtgNqp4eYGH0ytipiSKBI=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/async-dns/default.nix b/pkgs/development/python-modules/async-dns/default.nix
index fdf240f5ba96..3067269aac9f 100644
--- a/pkgs/development/python-modules/async-dns/default.nix
+++ b/pkgs/development/python-modules/async-dns/default.nix
@@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
-, fetchpatch
, poetry-core
, python
, pythonOlder
@@ -9,7 +8,7 @@
buildPythonPackage rec {
pname = "async-dns";
- version = "1.1.9";
+ version = "1.1.10";
disabled = pythonOlder "3.6";
format = "pyproject";
@@ -17,23 +16,13 @@ buildPythonPackage rec {
owner = "gera2ld";
repo = "async_dns";
rev = "v${version}";
- sha256 = "1z8j0s3dwcyavarhx41q75k1cmfzmwiqdh4svv3v15np26cywyag";
+ sha256 = "1yxmdlf2n66kp2mprsd4bvfsf63l4c4cfkjm2rm063pmlifz2fvj";
};
nativeBuildInputs = [
poetry-core
];
- patches = [
- # Switch to poetry-core, https://github.com/gera2ld/async_dns/pull/22
- # Can be remove for async-dns>1.1.9
- (fetchpatch {
- name = "switch-to-poetry-core.patch";
- url = "https://github.com/gera2ld/async_dns/commit/25fee497aae3bde0ddf9f8804d249a27edbe607e.patch";
- sha256 = "0w4zlppnp1a2q1wasc95ymqx3djswl32y5nw6fvz3nn8jg4gc743";
- })
- ];
-
checkPhase = ''
export HOME=$TMPDIR
# Test needs network access
diff --git a/pkgs/development/python-modules/daphne/default.nix b/pkgs/development/python-modules/daphne/default.nix
index fc48f9150124..f6d7fcac62a5 100644
--- a/pkgs/development/python-modules/daphne/default.nix
+++ b/pkgs/development/python-modules/daphne/default.nix
@@ -4,7 +4,7 @@
}:
buildPythonPackage rec {
pname = "daphne";
- version = "3.0.1";
+ version = "3.0.2";
disabled = !isPy3k;
@@ -12,7 +12,7 @@ buildPythonPackage rec {
owner = "django";
repo = pname;
rev = version;
- sha256 = "1bkxhzvaqwz760c11nhaiwvsq1d1csmk5dz2a1j1ynypjprhvhsk";
+ sha256 = "sha256-KWkMV4L7bA2Eo/u4GGif6lmDNrZAzvYyDiyzyWt9LeI=";
};
nativeBuildInputs = [ pytestrunner ];
diff --git a/pkgs/development/python-modules/debian-inspector/default.nix b/pkgs/development/python-modules/debian-inspector/default.nix
index 8064a35ffee0..e19694bcf9c8 100644
--- a/pkgs/development/python-modules/debian-inspector/default.nix
+++ b/pkgs/development/python-modules/debian-inspector/default.nix
@@ -2,30 +2,25 @@
, buildPythonPackage
, fetchPypi
, pythonAtLeast
-, fetchpatch
, chardet
, attrs
, commoncode
, pytestCheckHook
+, setuptools-scm
}:
+
buildPythonPackage rec {
pname = "debian-inspector";
- version = "0.9.10";
+ version = "21.5.25";
src = fetchPypi {
pname = "debian_inspector";
inherit version;
- sha256 = "fd29a02b925a4de0d7bb00c29bb05f19715a304bc10ef7b9ad06a93893dc3a8c";
+ sha256 = "1d3xaqw00kav85nk29qm2yqb73bkyqf185fs1q0vgd7bnap9wqaw";
};
- patches = lib.optionals (pythonAtLeast "3.9") [
- # https://github.com/nexB/debian-inspector/pull/15
- # fixes tests on Python 3.9
- (fetchpatch {
- name = "drop-encoding-argument.patch";
- url = "https://github.com/nexB/debian-inspector/commit/ff991cdb788671ca9b81f1602b70a439248fd1aa.patch";
- sha256 = "bm3k7vb9+Rm6+YicQEeDOOUVut8xpDaNavG+t2oLZkI=";
- })
+ nativeBuildInputs = [
+ setuptools-scm
];
dontConfigure = true;
diff --git a/pkgs/development/python-modules/django/3.nix b/pkgs/development/python-modules/django/3.nix
index ae6187e207e9..7ee41a962c73 100644
--- a/pkgs/development/python-modules/django/3.nix
+++ b/pkgs/development/python-modules/django/3.nix
@@ -13,13 +13,13 @@
buildPythonPackage rec {
pname = "Django";
- version = "3.2.4";
+ version = "3.2.5";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "15pjwyvrx4n8gi8n51b14wp54bg4jqapr25p52597zn6ikdxijb6";
+ sha256 = "1kam3301jl53vm0mhflwwsqy5d7kb5dksmjanlaj7v7xakm5z81x";
};
patches = lib.optional withGdal
diff --git a/pkgs/development/python-modules/drms/default.nix b/pkgs/development/python-modules/drms/default.nix
index 613d2444d73c..1bc5d380b08e 100644
--- a/pkgs/development/python-modules/drms/default.nix
+++ b/pkgs/development/python-modules/drms/default.nix
@@ -7,16 +7,18 @@
, astropy
, pytestCheckHook
, pytest-doctestplus
+, pythonOlder
}:
buildPythonPackage rec {
pname = "drms";
- version = "0.6.0";
+ version = "0.6.2";
format = "pyproject";
+ disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "74efb903f42647ea536de0c5aea4f9a81efe027c95055ec4e72ef62479a04c89";
+ sha256 = "sha256-Id8rPK8qq71gHn5DKnEi7Lp081GFbcFtGU+v89Vlt9o=";
};
propagatedBuildInputs = [
@@ -31,10 +33,12 @@ buildPythonPackage rec {
pytest-doctestplus
];
+ pythonImportsCheck = [ "drms" ];
+
meta = with lib; {
description = "Access HMI, AIA and MDI data with Python";
homepage = "https://github.com/sunpy/drms";
- license = licenses.mit;
- maintainers = [ maintainers.costrouc ];
+ license = licenses.bsd2;
+ maintainers = with maintainers; [ costrouc ];
};
}
diff --git a/pkgs/development/python-modules/editorconfig/default.nix b/pkgs/development/python-modules/editorconfig/default.nix
index 4329db98c2bd..6449a3da767c 100644
--- a/pkgs/development/python-modules/editorconfig/default.nix
+++ b/pkgs/development/python-modules/editorconfig/default.nix
@@ -6,29 +6,33 @@
buildPythonPackage rec {
pname = "editorconfig";
- version = "0.12.2";
+ version = "0.12.3";
# fetchgit used to ensure test submodule is available
src = fetchgit {
url = "https://github.com/editorconfig/editorconfig-core-py";
- rev = "596da5e06ebee05bdbdc6224203c79c4d3c6486a"; # Not tagged
- sha256 = "05cbp971b0zix7kfxkk7ndxb4ax1l21frwc00d4g78mk4sdz6dig";
+ rev = "1a8fb62b9941fded9e4fb83a3d0599427f5484cb"; # Not tagged
+ sha256 = "0vx8rl7kii72965jsi01mdsz9rfi1q9bwy13x47iaqm6rmcwc1rb";
};
- nativeBuildInputs = [ cmake ];
+ nativeBuildInputs = [
+ cmake
+ ];
dontUseCmakeConfigure = true;
checkPhase = ''
cmake .
- # utf_8_char fails with python3
+ # utf_8_char fails with Python 3
ctest -E "utf_8_char" .
'';
+ pythonImportsCheck = [ "editorconfig" ];
+
meta = with lib; {
- homepage = "https://editorconfig.org";
description = "EditorConfig File Locator and Interpreter for Python";
+ homepage = "https://editorconfig.org";
license = licenses.psfl;
+ maintainers = with maintainers; [ ];
};
-
}
diff --git a/pkgs/development/python-modules/extractcode/7z.nix b/pkgs/development/python-modules/extractcode/7z.nix
index e3318b426ecc..be6fcde55c29 100644
--- a/pkgs/development/python-modules/extractcode/7z.nix
+++ b/pkgs/development/python-modules/extractcode/7z.nix
@@ -4,15 +4,16 @@
, plugincode
, p7zip
}:
+
buildPythonPackage rec {
pname = "extractcode-7z";
- version = "21.4.4";
+ version = "21.5.31";
src = fetchFromGitHub {
owner = "nexB";
repo = "scancode-plugins";
rev = "v${version}";
- sha256 = "xnUGDMS34iMVMGo/nZwRarGzzbj3X4Rt+YHvvKpmy6A=";
+ sha256 = "02qinla281fc6pmg5xzsrmqnf9js76f2qcbf98zq7m2dkn70as4w";
};
sourceRoot = "source/builtins/extractcode_7z-linux";
diff --git a/pkgs/development/python-modules/extractcode/libarchive.nix b/pkgs/development/python-modules/extractcode/libarchive.nix
index 8e89c3d6a8e3..2cff60f3d811 100644
--- a/pkgs/development/python-modules/extractcode/libarchive.nix
+++ b/pkgs/development/python-modules/extractcode/libarchive.nix
@@ -15,13 +15,13 @@
buildPythonPackage rec {
pname = "extractcode-libarchive";
- version = "21.4.4";
+ version = "21.5.31";
src = fetchFromGitHub {
owner = "nexB";
repo = "scancode-plugins";
rev = "v${version}";
- sha256 = "xnUGDMS34iMVMGo/nZwRarGzzbj3X4Rt+YHvvKpmy6A=";
+ sha256 = "02qinla281fc6pmg5xzsrmqnf9js76f2qcbf98zq7m2dkn70as4w";
};
sourceRoot = "source/builtins/extractcode_libarchive-linux";
diff --git a/pkgs/development/python-modules/flask-compress/default.nix b/pkgs/development/python-modules/flask-compress/default.nix
index 5d8359885bd1..fff330946d16 100644
--- a/pkgs/development/python-modules/flask-compress/default.nix
+++ b/pkgs/development/python-modules/flask-compress/default.nix
@@ -11,6 +11,10 @@ buildPythonPackage rec {
sha256 = "28352387efbbe772cfb307570019f81957a13ff718d994a9125fa705efb73680";
};
+ postPatch = ''
+ sed -i -e 's/use_scm_version=.*/version="${version}",/' setup.py
+ '';
+
propagatedBuildInputs = [ flask brotli ];
meta = with lib; {
diff --git a/pkgs/development/python-modules/greenlet/default.nix b/pkgs/development/python-modules/greenlet/default.nix
index 8762d62e59b9..4d829f3d6473 100644
--- a/pkgs/development/python-modules/greenlet/default.nix
+++ b/pkgs/development/python-modules/greenlet/default.nix
@@ -3,6 +3,7 @@
, fetchPypi
, six
, isPyPy
+, python
}:
@@ -16,11 +17,18 @@ buildPythonPackage rec {
sha256 = "c87df8ae3f01ffb4483c796fe1b15232ce2b219f0b18126948616224d3f658ee";
};
- propagatedBuildInputs = [ six ];
+ checkPhase = ''
+ runHook preCheck
+ ${python.interpreter} -m unittest discover -v greenlet.tests
+ runHook postCheck
+ '';
- meta = {
- homepage = "https://pypi.python.org/pypi/greenlet";
+ meta = with lib; {
+ homepage = "https://github.com/python-greenlet/greenlet";
description = "Module for lightweight in-process concurrent programming";
- license = lib.licenses.lgpl2;
+ license = with licenses; [
+ psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
+ mit
+ ];
};
}
diff --git a/pkgs/development/python-modules/guppy3/default.nix b/pkgs/development/python-modules/guppy3/default.nix
index 578f979914cb..b9db312d8716 100644
--- a/pkgs/development/python-modules/guppy3/default.nix
+++ b/pkgs/development/python-modules/guppy3/default.nix
@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "guppy3";
- version = "3.1.0";
+ version = "3.1.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "zhuyifei1999";
repo = pname;
rev = "v${version}";
- sha256 = "0yjsn8najbic4f50nj6jzhzrhj1bw6918w0gihdkzhqynwgqi64m";
+ sha256 = "14iwah1i4dcn74zjj9sq3av1yh9q5nvgqwccnn71blp7gxcnxnvh";
};
propagatedBuildInputs = [ tkinter ];
diff --git a/pkgs/development/python-modules/malduck/default.nix b/pkgs/development/python-modules/malduck/default.nix
index a9a8419a04dc..1b757a144ccf 100644
--- a/pkgs/development/python-modules/malduck/default.nix
+++ b/pkgs/development/python-modules/malduck/default.nix
@@ -35,8 +35,14 @@ buildPythonPackage rec {
yara-python
];
+ postPatch = ''
+ substituteInPlace requirements.txt \
+ --replace "pefile==2019.4.18" "pefile"
+ '';
+
# Project has no tests. They will come with the next release
doCheck = false;
+
pythonImportsCheck = [ "malduck" ];
meta = with lib; {
diff --git a/pkgs/development/python-modules/mdformat/default.nix b/pkgs/development/python-modules/mdformat/default.nix
index 159310035b8f..780cafa599db 100644
--- a/pkgs/development/python-modules/mdformat/default.nix
+++ b/pkgs/development/python-modules/mdformat/default.nix
@@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "mdformat";
- version = "0.7.6";
+ version = "0.7.7";
format = "pyproject";
disabled = pythonOlder "3.6";
@@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "executablebooks";
repo = pname;
rev = version;
- sha256 = "0mnbi3vp7zgllpcpf6vrjw9y6jas95shphn99ayr8b8wgxsaqkif";
+ sha256 = "sha256-1qwluHxZnSuyNJENzeJzkuhIQN5njTOch2Wz45J0qRI=";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/netmap/default.nix b/pkgs/development/python-modules/netmap/default.nix
new file mode 100644
index 000000000000..012599216074
--- /dev/null
+++ b/pkgs/development/python-modules/netmap/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, substituteAll
+, nmap
+, python
+}:
+
+buildPythonPackage rec {
+ pname = "netmap";
+ version = "0.7.0.2";
+
+ src = fetchFromGitHub {
+ owner = "home-assistant-libs";
+ repo = "python-nmap";
+ rev = version;
+ sha256 = "1a44zz9zsxy48ahlpjjrddpyfi7cnfknicfcp35hi588qm430mag";
+ };
+
+ patches = [
+ (substituteAll {
+ src = ./nmap-path.patch;
+ nmap = "${lib.getBin nmap}/bin/nmap";
+ })
+ ];
+
+ # upstream tests require sudo
+ # make sure nmap is found instead
+ checkPhase = ''
+ runHook preCheck
+ ${python.interpreter} -c 'import nmap; nmap.PortScanner()'
+ runHook postCheck
+ '';
+
+ pythonImportsCheck = [ "nmap" ];
+
+ meta = with lib; {
+ description = "Python class to use nmap and access scan results from python3";
+ homepage = "https://github.com/home-assistant-libs/python-nmap";
+ license = licenses.gpl3Plus;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}
diff --git a/pkgs/development/python-modules/netmap/nmap-path.patch b/pkgs/development/python-modules/netmap/nmap-path.patch
new file mode 100644
index 000000000000..99f9cb43a940
--- /dev/null
+++ b/pkgs/development/python-modules/netmap/nmap-path.patch
@@ -0,0 +1,17 @@
+diff --git a/nmap/nmap.py b/nmap/nmap.py
+index 91c460d..8c5ff0a 100755
+--- a/nmap/nmap.py
++++ b/nmap/nmap.py
+@@ -77,11 +77,7 @@ class PortScanner(object):
+ def __init__(
+ self,
+ nmap_search_path=(
+- "nmap",
+- "/usr/bin/nmap",
+- "/usr/local/bin/nmap",
+- "/sw/bin/nmap",
+- "/opt/local/bin/nmap",
++ "@nmap@",
+ ),
+ ):
+ """
diff --git a/pkgs/development/python-modules/osmnx/default.nix b/pkgs/development/python-modules/osmnx/default.nix
index a55d26d83c28..4cc0ce80d4d1 100755
--- a/pkgs/development/python-modules/osmnx/default.nix
+++ b/pkgs/development/python-modules/osmnx/default.nix
@@ -1,18 +1,19 @@
-{ lib, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
-, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy}:
+{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, geopandas, matplotlib, networkx, numpy
+, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy, gdal, rasterio}:
buildPythonPackage rec {
pname = "osmnx";
- version = "0.9";
+ version = "1.1.1";
+ disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "gboeing";
repo = pname;
rev = "v${version}";
- sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z";
+ sha256 = "0dkv3fnlq23d7d30lhdf4a313lxy3a5qfldidvszs1z9n16ycnwb";
};
- propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy ];
+ propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];
# requires network
doCheck = false;
diff --git a/pkgs/development/python-modules/pefile/default.nix b/pkgs/development/python-modules/pefile/default.nix
index 92a0d064f49c..5cd514c871fc 100644
--- a/pkgs/development/python-modules/pefile/default.nix
+++ b/pkgs/development/python-modules/pefile/default.nix
@@ -1,24 +1,34 @@
-{ buildPythonPackage
+{ lib
+, buildPythonPackage
, future
-, fetchPypi
-, lib
+, fetchFromGitHub
+, setuptools-scm
+, pythonOlder
}:
buildPythonPackage rec {
pname = "pefile";
- version = "2019.4.18";
+ version = "2021.5.24";
+ disabled = pythonOlder "3.6";
- propagatedBuildInputs = [ future ];
-
- src = fetchPypi {
- inherit pname version;
- sha256 = "a5d6e8305c6b210849b47a6174ddf9c452b2888340b8177874b862ba6c207645";
+ src = fetchFromGitHub {
+ owner = "erocarrera";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0qdy88dvy29ixsyfqdcvf3w6rz09vpimk0568i09v1ayhs52p62k";
};
- # Test data encrypted.
+ nativeBuildInputs = [
+ setuptools-scm
+ ];
+
+ propagatedBuildInputs = [
+ future
+ ];
+
+ # Test data encrypted
doCheck = false;
- # Verify import still works.
pythonImportsCheck = [ "pefile" ];
meta = with lib; {
diff --git a/pkgs/development/python-modules/pyahocorasick/default.nix b/pkgs/development/python-modules/pyahocorasick/default.nix
index 9ef89c6e920d..87d1d0c9fc01 100644
--- a/pkgs/development/python-modules/pyahocorasick/default.nix
+++ b/pkgs/development/python-modules/pyahocorasick/default.nix
@@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "pyahocorasick";
- version = "1.4.0";
+ version = "1.4.1";
src = fetchFromGitHub {
owner = "WojciechMula";
repo = pname;
rev = version;
- sha256 = "0plm9x2gziayjsl7flsgn1z8qx88c9vqm4fs1wq7dv7fr188liik";
+ sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
};
checkInputs = [ pytestCheckHook ];
diff --git a/pkgs/development/python-modules/pyeight/default.nix b/pkgs/development/python-modules/pyeight/default.nix
index b3a2de5ed404..a714bbfaba95 100644
--- a/pkgs/development/python-modules/pyeight/default.nix
+++ b/pkgs/development/python-modules/pyeight/default.nix
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "pyeight";
- version = "0.1.5";
+ version = "0.1.7";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "mezz64";
repo = "pyEight";
rev = version;
- sha256 = "1wzmjqs8zx611b71ip7a0phyas96vxpq8xpnhrirfi9l09kdjgsw";
+ sha256 = "sha256-kTxd6nRsPvCjrXApjKcoghOISIMho5x9/kK7OvHjKQM=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/pyfreedompro/default.nix b/pkgs/development/python-modules/pyfreedompro/default.nix
new file mode 100644
index 000000000000..f5fd102ed7fc
--- /dev/null
+++ b/pkgs/development/python-modules/pyfreedompro/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+, aiohttp
+}:
+
+buildPythonPackage rec {
+ pname = "pyfreedompro";
+ version = "1.1.0";
+
+ disabled = pythonOlder "3.6";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "92812070a0c74761fa0c8cac98ddbe0bca781c8de80e2b08dbd04492e831c172";
+ };
+
+ propagatedBuildInputs = [
+ aiohttp
+ ];
+
+ # upstream has no tests
+ doCheck = false;
+
+ pythonImportsCheck = [ "aiohttp" ];
+
+ meta = with lib; {
+ description = "Python library for Freedompro API";
+ homepage = "https://github.com/stefano055415/pyfreedompro";
+ license = licenses.mit;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}
diff --git a/pkgs/development/python-modules/pyfritzhome/default.nix b/pkgs/development/python-modules/pyfritzhome/default.nix
index 7c0982d490ba..0bfda48269e1 100644
--- a/pkgs/development/python-modules/pyfritzhome/default.nix
+++ b/pkgs/development/python-modules/pyfritzhome/default.nix
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "pyfritzhome";
- version = "0.6.1";
+ version = "0.6.2";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-fritzhome";
rev = version;
- sha256 = "sha256-CEoXb7D/8Iksw4aJYNqANkmfhd0yxIIuabaTdWI3RNc=";
+ sha256 = "1hwxq9w5qmiky8gpp623nabmydr3yv6hvgzk24fdbmkglfp6ja1v";
};
propagatedBuildInputs = [ requests ];
@@ -27,7 +27,7 @@ buildPythonPackage rec {
];
checkPhase = ''
- nosetests --with-coverage
+ nosetests
'';
pythonImportsCheck = [ "pyfritzhome" ];
diff --git a/pkgs/development/python-modules/pypoint/default.nix b/pkgs/development/python-modules/pypoint/default.nix
new file mode 100644
index 000000000000..be487199b38b
--- /dev/null
+++ b/pkgs/development/python-modules/pypoint/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, authlib
+, httpx
+}:
+
+buildPythonPackage rec {
+ pname = "pypoint";
+ version = "2.1.0";
+
+ src = fetchFromGitHub {
+ owner = "fredrike";
+ repo = "pypoint";
+ rev = "v${version}";
+ sha256 = "13p68d2qxfj31lfjv94wzpigjfgjw03yjpl2h16zgxbka2k8zf3x";
+ };
+
+ propagatedBuildInputs = [
+ authlib
+ httpx
+ ];
+
+ # upstream has no tests
+ doCheck = false;
+
+ pythonImportsCheck = [ "pypoint" ];
+
+ meta = with lib; {
+ description = "API for Minut Point";
+ homepage = "https://github.com/fredrike/pypoint";
+ license = licenses.mit;
+ maintainers = with maintainers; [ dotlambda ];
+ };
+}
diff --git a/pkgs/development/python-modules/pysyncobj/default.nix b/pkgs/development/python-modules/pysyncobj/default.nix
index bca2d47320eb..3afdacd18034 100644
--- a/pkgs/development/python-modules/pysyncobj/default.nix
+++ b/pkgs/development/python-modules/pysyncobj/default.nix
@@ -5,13 +5,13 @@
buildPythonPackage rec {
pname = "pysyncobj";
- version = "0.3.7";
+ version = "0.3.8";
src = fetchFromGitHub {
owner = "bakwc";
repo = "PySyncObj";
rev = version;
- sha256 = "0i7gjapaggkfvys4rgd4krpmh6mxwpzv30ngiwb6ddgp8jx0nzxk";
+ sha256 = "sha256-T7ecy5/1eF0pYaOv74SBEp6V6Z23E2b9lo5Q/gig3Cw=";
};
# Tests require network features
diff --git a/pkgs/development/python-modules/pytest-cases/default.nix b/pkgs/development/python-modules/pytest-cases/default.nix
index 018ca0c46de9..9bee3808c5a7 100644
--- a/pkgs/development/python-modules/pytest-cases/default.nix
+++ b/pkgs/development/python-modules/pytest-cases/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "pytest-cases";
- version = "3.6.1";
+ version = "3.6.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "2009845554d3169dca99a7397d9904e5dbb58726c7417e8c308dda86f8966311";
+ sha256 = "1hipm73s97dx37la57aif1x7myidirfslr1k6apvwyc2929y2lsk";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix
index 4d223c548388..6ddc4543d3d0 100644
--- a/pkgs/development/python-modules/python-telegram-bot/default.nix
+++ b/pkgs/development/python-modules/python-telegram-bot/default.nix
@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "python-telegram-bot";
- version = "13.6";
+ version = "13.7";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "37cfe8faba16fb68a8b5ab41a10e787c385f6296200c84256cc54d7c16334643";
+ sha256 = "sha256-JN91RZ4zW5a6/6aZFnn4RL1CaXivWmnKQZoKxDpAYCw=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/pytibber/default.nix b/pkgs/development/python-modules/pytibber/default.nix
index c6bf0e4aef6a..e036197a1eca 100644
--- a/pkgs/development/python-modules/pytibber/default.nix
+++ b/pkgs/development/python-modules/pytibber/default.nix
@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "pytibber";
- version = "0.18.0";
+ version = "0.19.0";
disabled = pythonOlder "3.7";
@@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "Danielhiversen";
repo = "pyTibber";
rev = version;
- sha256 = "sha256-612BBDgVcdpOsEl2Hc+oCDFmSPGjHvfmVr7i7zdfB/o=";
+ sha256 = "sha256-9xKt6OspdM7zWbVzjtvDPYuGyIW3K6ioASt53LOgdvk=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/qcelemental/default.nix b/pkgs/development/python-modules/qcelemental/default.nix
index 7d1dcdeb1c7b..3a3e9bced050 100644
--- a/pkgs/development/python-modules/qcelemental/default.nix
+++ b/pkgs/development/python-modules/qcelemental/default.nix
@@ -1,34 +1,19 @@
-{ buildPythonPackage, lib, fetchPypi, fetchpatch, numpy
+{ buildPythonPackage, lib, fetchPypi, numpy
, pydantic, pint, networkx, pytestrunner, pytestcov, pytest
} :
buildPythonPackage rec {
pname = "qcelemental";
- version = "0.20.0";
+ version = "0.21.0";
checkInputs = [ pytestrunner pytestcov pytest ];
propagatedBuildInputs = [ numpy pydantic pint networkx ];
src = fetchPypi {
inherit pname version;
- sha256 = "141vw36fmacj897q26kq2bl9l0d23lyqjfry6q46aa9087dcs7ni";
+ sha256 = "1b3c78fxbpnddrm1fnbvv4x2840jcfjg2l5cb5w4p38vzksiv238";
};
- # FIXME: Fixed upstream but not released yet. Nevertheless critical for correct behaviour.
- # See https://github.com/MolSSI/QCElemental/pull/265
- patches = [
- (fetchpatch {
- name = "SearchPath1.patch";
- url = "https://github.com/MolSSI/QCElemental/commit/2211a4e59690bcb14265a60f199a5efe74fe44db.diff";
- sha256 = "1ibjvmdrc103jdj79xrr11y5yji5hc966rm4ihfhfzgbvfkbjg2l";
- })
- (fetchpatch {
- name = "SearchPath2.patch";
- url = "https://github.com/MolSSI/QCElemental/commit/5a32ce33e8142047b0a00d0036621fe2750e872a.diff";
- sha256 = "0gmg70vdps7k6alqclwdlxkli9d8s1fphbdvyl8wy8xrh46jw6rk";
- })
- ];
-
doCheck = true;
meta = with lib; {
diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix
index 236970a5d343..85d5d5d0b7d8 100644
--- a/pkgs/development/python-modules/rasterio/default.nix
+++ b/pkgs/development/python-modules/rasterio/default.nix
@@ -2,23 +2,24 @@
, cython, setuptools
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
, pytest, pytestcov, packaging, hypothesis, boto3, mock
+, certifi, shapely
}:
buildPythonPackage rec {
pname = "rasterio";
- version = "1.1.5";
+ version = "1.2.6";
# Pypi doesn't ship the tests, so we fetch directly from GitHub
src = fetchFromGitHub {
owner = "mapbox";
repo = "rasterio";
rev = version;
- sha256 = "168b6hmx026jsvhnq6s5k0qfhzda02mmx1alax6wqk16mk63mqcz";
+ sha256 = "sha256-rf2qdUhbS4Z2+mvlN1RzZvlgTgjqiBoQzry4z5QLSUc=";
};
- checkInputs = [ boto3 pytest pytestcov packaging hypothesis ] ++ lib.optional (!isPy3k) mock;
+ checkInputs = [ boto3 pytest pytestcov packaging hypothesis shapely ] ++ lib.optional (!isPy3k) mock;
nativeBuildInputs = [ cython gdal ];
- propagatedBuildInputs = [ gdal numpy attrs affine cligj click-plugins snuggs setuptools ];
+ propagatedBuildInputs = [ certifi gdal numpy attrs affine cligj click-plugins snuggs setuptools ];
meta = with lib; {
description = "Python package to read and write geospatial raster data";
diff --git a/pkgs/development/python-modules/simber/default.nix b/pkgs/development/python-modules/simber/default.nix
index d1471286bb84..331f84252cee 100644
--- a/pkgs/development/python-modules/simber/default.nix
+++ b/pkgs/development/python-modules/simber/default.nix
@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "simber";
- version = "0.2.2";
+ version = "0.2.3";
src = fetchFromGitHub {
owner = "deepjyoti30";
repo = pname;
rev = version;
- sha256 = "0ksc2m61j5ijj0sq6kkc0hhkmfy9f51h9z3cl2sf8g6wbr9vc47h";
+ sha256 = "04dp9b4s7zb166vlacsaypc6iw1p75azqas1wf0flp570qqf3rkx";
};
propagatedBuildInputs = [ colorama ];
diff --git a/pkgs/development/python-modules/skidl/default.nix b/pkgs/development/python-modules/skidl/default.nix
index 3d2007732e8c..3b4f42c1feee 100644
--- a/pkgs/development/python-modules/skidl/default.nix
+++ b/pkgs/development/python-modules/skidl/default.nix
@@ -1,36 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
-, requests
, future
, kinparse
-, enum34
, pyspice
, graphviz
-, pillow
-, cffi
}:
buildPythonPackage rec {
pname = "skidl";
- version = "unstable-2020-09-15";
+ version = "1.0.0";
src = fetchFromGitHub {
owner = "xesscorp";
repo = "skidl";
- rev = "551bdb92a50c0894b0802c0a89b4cb62a5b4038f";
- sha256 = "1g65cyxpkqshgsggav2q3f76rbj5pzh7sacyhmhzvfz4zfarkcxk";
+ rev = version;
+ sha256 = "1m0hllvmr5nkl4zy8yyzfgw9zmbrrzd5pw87ahd2mq68fjpcaqq5";
};
propagatedBuildInputs = [
- requests
future
kinparse
- enum34
pyspice
graphviz
- pillow
- cffi
];
# Checks require availability of the kicad symbol libraries.
@@ -38,8 +30,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "skidl" ];
meta = with lib; {
- description = "SKiDL is a module that extends Python with the ability to design electronic circuits";
- homepage = "https://xesscorp.github.io/skidl/docs/_site/";
+ description = "Module that extends Python with the ability to design electronic circuits";
+ homepage = "https://xess.com/skidl/docs/_site/";
license = licenses.mit;
maintainers = with maintainers; [ matthuszagh ];
};
diff --git a/pkgs/development/python-modules/splinter/default.nix b/pkgs/development/python-modules/splinter/default.nix
index 1ae05cab9738..cb63f8d11ba4 100644
--- a/pkgs/development/python-modules/splinter/default.nix
+++ b/pkgs/development/python-modules/splinter/default.nix
@@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "splinter";
- version = "0.14.0";
+ version = "0.15.0";
src = fetchFromGitHub {
owner = "cobrateam";
repo = "splinter";
rev = version;
- sha256 = "0480bqprv8581cvnc80ls91rz9780wvdnfw99zsw44hvy2yg15a6";
+ sha256 = "sha256-y87Cnci4gJHrttThGPeOS/h6VK8x95cQA9nZs1fBfAw=";
};
propagatedBuildInputs = [
@@ -32,6 +32,7 @@ buildPythonPackage rec {
"samples"
"tests/test_djangoclient.py"
"tests/test_flaskclient.py"
+ "tests/test_popups.py"
"tests/test_webdriver.py"
"tests/test_webdriver_chrome.py"
"tests/test_webdriver_firefox.py"
diff --git a/pkgs/development/python-modules/sqlalchemy/default.nix b/pkgs/development/python-modules/sqlalchemy/default.nix
index eac1f9b49355..6c576f0b85e9 100644
--- a/pkgs/development/python-modules/sqlalchemy/default.nix
+++ b/pkgs/development/python-modules/sqlalchemy/default.nix
@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "SQLAlchemy";
- version = "1.4.19";
+ version = "1.4.20";
src = fetchPypi {
inherit pname version;
- sha256 = "1qjwxqmsw34iw07nl1vzghj5m5inr2bs414lg9yf9drkrwys39c9";
+ sha256 = "1l5miq1nzvg51yqw3pnaq17dgibhgx2m0il2ha79gwpyd8k3mviq";
};
propagatedBuildInputs = [
@@ -36,8 +36,6 @@ buildPythonPackage rec {
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
'';
- dontUseSetuptoolsCheck = true;
-
# disable mem-usage tests on mac, has trouble serializing pickle files
disabledTests = lib.optionals stdenv.isDarwin [
"MemUsageWBackendTest"
diff --git a/pkgs/development/python-modules/tern/0001-Replace-debut-with-debian-inspector.patch b/pkgs/development/python-modules/tern/0001-Replace-debut-with-debian-inspector.patch
deleted file mode 100644
index c9cb8b4a5281..000000000000
--- a/pkgs/development/python-modules/tern/0001-Replace-debut-with-debian-inspector.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From d944d8fa6cb6d1667f3e4c4e0cff4c4b2a7c0a30 Mon Sep 17 00:00:00 2001
-From: Cole Helbling <cole.e.helbling@outlook.com>
-Date: Fri, 7 May 2021 11:00:46 -0700
-Subject: [PATCH] Replace `debut` with `debian-inspector`
-
----
- requirements.in | 2 +-
- tern/analyze/common.py | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/requirements.in b/requirements.in
-index edd90ab..5135841 100644
---- a/requirements.in
-+++ b/requirements.in
-@@ -12,6 +12,6 @@ requests
- stevedore
- pbr
- dockerfile-parse
--debut
-+debian-inspector
- regex
- GitPython
-diff --git a/tern/analyze/common.py b/tern/analyze/common.py
-index 6962404..0f5e77d 100644
---- a/tern/analyze/common.py
-+++ b/tern/analyze/common.py
-@@ -19,8 +19,8 @@ from tern.utils import cache
- from tern.utils import constants
- from tern.utils import general
- from tern.utils import rootfs
--from debut import debcon
--from debut import copyright as debut_copyright
-+from debian_inspector import debcon
-+from debian_inspector import copyright as debut_copyright
-
- # global logger
- logger = logging.getLogger(constants.logger_name)
---
-2.31.1
-
diff --git a/pkgs/development/python-modules/tern/default.nix b/pkgs/development/python-modules/tern/default.nix
index e00e06561f02..0468ee6f84b1 100644
--- a/pkgs/development/python-modules/tern/default.nix
+++ b/pkgs/development/python-modules/tern/default.nix
@@ -13,6 +13,7 @@
, prettytable
, idna
}:
+
buildPythonPackage rec {
pname = "tern";
version = "2.6.1";
@@ -22,14 +23,6 @@ buildPythonPackage rec {
sha256 = "749c18ef493ebe3ac28624b2b26c6e38f77de2afd6a6579d2c92393d8fbdbd46";
};
- patches = [
- # debut was renamed to debian-inspector
- # https://github.com/tern-tools/tern/pull/962
- # NOTE: Has to be in-tree because the upstream patch doesn't apply cleanly
- # to the PyPi source.
- ./0001-Replace-debut-with-debian-inspector.patch
- ];
-
preBuild = ''
cp requirements.{in,txt}
'';
diff --git a/pkgs/development/python-modules/twitterapi/default.nix b/pkgs/development/python-modules/twitterapi/default.nix
index b45218219c53..166e42ced821 100644
--- a/pkgs/development/python-modules/twitterapi/default.nix
+++ b/pkgs/development/python-modules/twitterapi/default.nix
@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "twitterapi";
- version = "2.7.3";
+ version = "2.7.4";
src = fetchFromGitHub {
owner = "geduldig";
repo = "TwitterAPI";
rev = "v${version}";
- sha256 = "sha256-82TOVrC7wX7E9lKsx3iGxaEEjHSzf5uZwePBvAw3hDk=";
+ sha256 = "sha256-HDPRpM1LDTtUbldzfCrsdh/GpbzNCVVUVGwohyMe/YE=";
};
propagatedBuildInputs = [