mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge branch 'master' into staging-next
This commit is contained in:
58
pkgs/development/python-modules/anyio/default.nix
Normal file
58
pkgs/development/python-modules/anyio/default.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, idna
|
||||
, sniffio
|
||||
, typing-extensions
|
||||
, curio
|
||||
, hypothesis
|
||||
, pytestCheckHook
|
||||
, trio
|
||||
, trustme
|
||||
, uvloop
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anyio";
|
||||
version = "2.0.2";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "agronholm";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "06nazfrm2sclp3lpgsn9wl8vmqxvx36s3gr2gnqz3zhjpf3glkxv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
idna
|
||||
sniffio
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
curio
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
trio
|
||||
trustme
|
||||
uvloop
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# lots of DNS lookups
|
||||
"--ignore=tests/test_sockets.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "anyio" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "High level compatibility layer for multiple asynchronous event loop implementations on Python";
|
||||
homepage = "https://github.com/agronholm/anyio";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apprise";
|
||||
version = "0.8.7";
|
||||
version = "0.8.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "18a65c5917bf7f2d48bb557bf0879e49c5293b4c0e9809328387ae09338ae37b";
|
||||
sha256 = "024db00c6a80dbc8c9038b2de211c9fd32963046612882f3f54ad78930f3e0f7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ Babel ];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ stdenv, buildPythonPackage, isPy27, fetchFromGitHub, itsdangerous, python-multipart
|
||||
, pytest, starlette, httpx, pytest-asyncio }:
|
||||
, pytestCheckHook, starlette, httpx, pytest-asyncio }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7";
|
||||
version = "0.7.1";
|
||||
pname = "asgi-csrf";
|
||||
disabled = isPy27;
|
||||
|
||||
@@ -11,15 +11,26 @@ buildPythonPackage rec {
|
||||
owner = "simonw";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1vf4lh007790836cp3hd6wf8wsgj045dcg0w1cm335p08zz6j4k7";
|
||||
sha256 = "1hhqrb9r46y6i3d3w6hc9zm6yyikdyd2k5pcbyw0r9fl959yi4hf";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ itsdangerous python-multipart ];
|
||||
propagatedBuildInputs = [
|
||||
itsdangerous
|
||||
python-multipart
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
httpx
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
starlette
|
||||
];
|
||||
|
||||
# tests fail while importing a private module from httpx
|
||||
# E ModuleNotFoundError: No module named 'httpx._content_streams'
|
||||
# https://github.com/simonw/asgi-csrf/issues/18
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [ pytest starlette httpx pytest-asyncio ];
|
||||
checkPhase = ''
|
||||
pytest test_asgi_csrf.py
|
||||
'';
|
||||
pythonImportsCheck = [ "asgi_csrf" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
44
pkgs/development/python-modules/async_stagger/default.nix
Normal file
44
pkgs/development/python-modules/async_stagger/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "async_stagger";
|
||||
version = "0.3.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "007l54fbk2dfzv3vmqz98m1i37mzxkkva5r4fiwq2pg8nb61fy0w";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Fix test failures on Python 3.8
|
||||
# https://github.com/twisteroidambassador/async_stagger/issues/4
|
||||
url = "https://github.com/twisteroidambassador/async_stagger/commit/736ab20ff9c172628d911f1e6f72420399ec9631.patch";
|
||||
sha256 = "1ygqd9n56sj83lvgmv6nrx3m0sp3646s5k7z697qx43xslixj731";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "async_stagger" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Happy Eyeballs connection algorithm and underlying scheduling logic in asyncio";
|
||||
homepage = "https://github.com/twisteroidambassador/async_stagger";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/asyncio-throttle/default.nix
Normal file
34
pkgs/development/python-modules/asyncio-throttle/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asyncio-throttle";
|
||||
version = "1.0.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hallazzang";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0raqnrnp42cn1c7whbm7ajbgaczx33k6hbxsj30nh998pqxhh4sj";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "asyncio_throttle" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple, easy-to-use throttler for asyncio";
|
||||
homepage = "https://github.com/hallazzang/asyncio-throttle";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "audioread";
|
||||
version = "2.1.8";
|
||||
version = "2.1.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "073904fabc842881e07bd3e4a5776623535562f70b1655b635d22886168dd168";
|
||||
sha256 = "a3480e42056c8e80a8192a54f6729a280ef66d27782ee11cbd63e9d4d1523089";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "azure-mgmt-datamigration";
|
||||
version = "4.0.0";
|
||||
version = "4.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1efda568d67af911156591eb308432b5f9a56075b57ac0a5dd9f7aee17d79217";
|
||||
sha256 = "c33d1deb0ee173a15c8ec21a1e714ba544fe5f4895d3b1d8b0581f3c1b2e8ce4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.9.0";
|
||||
version = "0.10.0";
|
||||
pname = "azure-mgmt-kusto";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9210db89fa18ee8ed53339cd63bbe6fe1d9624cd793b54b7451ddbda8ae92ef3";
|
||||
sha256 = "09e8d4928e19d12feb374adb47651b474f3ee3bc6a12704e4b70c9b38e3bcd9e";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
, ply, python_magic, pytest, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.3.2";
|
||||
version = "2.3.3";
|
||||
pname = "beancount";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1wfpf2b0sha84rz0qgkanc82wharjqr2nr7xxg1rngrci2h0aqhd";
|
||||
sha256 = "0767ap2n9vk9dz40njndfhaprajr75fvzx7igbd1szc6x8wri8nr";
|
||||
};
|
||||
|
||||
# Tests require files not included in the PyPI archive.
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.5.6";
|
||||
version = "1.5.7";
|
||||
pname = "bids-validator";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ef9476ded8226c86fe1d6e6b9f380666ada7a0f4ae39bd5afd7eabbbc6979ab7";
|
||||
sha256 = "624fade609636c64e7829ff072bdf12f93512948a803059b059e5c90df894be2";
|
||||
};
|
||||
|
||||
# needs packages which are not available in nixpkgs
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
, cabextract
|
||||
, cramfsprogs
|
||||
, cramfsswap
|
||||
, sasquatch
|
||||
, squashfsTools
|
||||
, lzma
|
||||
, matplotlib
|
||||
, nose
|
||||
@@ -32,7 +34,7 @@ buildPythonPackage {
|
||||
sha256 = "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs lzma pycrypto ]
|
||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs sasquatch squashfsTools lzma pycrypto ]
|
||||
++ stdenv.lib.optionals visualizationSupport [ matplotlib pyqtgraph ];
|
||||
|
||||
# setup.py only installs version.py during install, not test
|
||||
|
||||
@@ -103,7 +103,7 @@ let
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://buildbot.net/";
|
||||
description = "Buildbot is an open-source continuous integration framework for automating software build, test, and release processes";
|
||||
description = "An open-source continuous integration framework for automating software build, test, and release processes";
|
||||
maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ];
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cchardet";
|
||||
version = "2.1.6";
|
||||
version = "2.1.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1cs6y59qhbal8fgbyjk2lpjykh8kfjhq16clfssylsddb4hgnsmp";
|
||||
sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "chalice";
|
||||
version = "1.21.2";
|
||||
version = "1.21.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "72efc25672ce7535c0e26bbe7157d7bd31ab12ed3f5221a64367548ca2daa265";
|
||||
sha256 = "0b44514cdbafab08b18e21f59fc016cead0b78f5f5fdf14eccd993c469130b39";
|
||||
};
|
||||
|
||||
checkInputs = [ watchdog pytest hypothesis mock ];
|
||||
|
||||
@@ -27,6 +27,6 @@ buildPythonPackage rec {
|
||||
description = "Convenience class for doing maths with explicit coordinates";
|
||||
homepage = "https://github.com/clbarnes/coordinates";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mildlyincompetent ];
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dask";
|
||||
version = "2.22.0";
|
||||
version = "2.25.0";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||
owner = "dask";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "08nvxj81cz9x92dh2gbmm4imkr8cfljfi2hxkballv2ygwcbzg8g";
|
||||
sha256 = "1irp6s577yyjvrvkg00hh1wnl8vrv7pbnbr09mk67z9y7s6xhiw3";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
@@ -70,7 +70,8 @@ buildPythonPackage rec {
|
||||
|
||||
meta = {
|
||||
description = "Minimal task scheduling abstraction";
|
||||
homepage = "https://github.com/ContinuumIO/dask/";
|
||||
homepage = "https://dask.org/";
|
||||
changelog = "https://docs.dask.org/en/latest/changelog.html";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ fridh ];
|
||||
};
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "debugpy";
|
||||
version = "1.0.0";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Microsoft";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1cxwbq97n5pfmq0hji1ybbc6i1jg5bjy830dq23zqxbwxxwjx98m";
|
||||
sha256 = "1f6a62hg82fn9ddrl6g11x2h27zng8jmrlfbnnra6q590i5v1ixr";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -45,6 +45,13 @@ buildPythonPackage rec {
|
||||
./fix-test-pythonpath.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Use nixpkgs version instead of versioneer
|
||||
substituteInPlace setup.py \
|
||||
--replace "cmds = versioneer.get_cmdclass()" "cmds = {}" \
|
||||
--replace "version=versioneer.get_version()" "version='${version}'"
|
||||
'';
|
||||
|
||||
# Remove pre-compiled "attach" libraries and recompile for host platform
|
||||
# Compile flags taken from linux_and_mac/compile_linux.sh & linux_and_mac/compile_mac.sh
|
||||
preBuild = ''(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
, django_2_2, requests, oauthlib
|
||||
, django, requests, oauthlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1zbksxrcxlqnapmlvx4rgvpqc4plgnq0xnf45cjwzwi1626zs8g6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ django_2_2 requests oauthlib ];
|
||||
propagatedBuildInputs = [ django requests oauthlib ];
|
||||
|
||||
# django.core.exceptions.ImproperlyConfigured: Requested setting OAUTH2_PROVIDER, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
|
||||
doCheck = false;
|
||||
|
||||
48
pkgs/development/python-modules/django/3.nix
Normal file
48
pkgs/development/python-modules/django/3.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, geos
|
||||
, gdal
|
||||
, asgiref
|
||||
, pytz
|
||||
, sqlparse
|
||||
, pythonOlder
|
||||
, withGdal ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "3.1.2";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a2127ad0150ec6966655bedf15dbbff9697cc86d61653db2da1afa506c0b04cc";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optional withGdal
|
||||
(substituteAll {
|
||||
src = ./django_3_set_geos_gdal_lib.patch;
|
||||
geos = geos;
|
||||
gdal = gdal;
|
||||
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
});
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asgiref
|
||||
pytz
|
||||
sqlparse
|
||||
];
|
||||
|
||||
# too complicated to setup
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A high-level Python Web framework";
|
||||
homepage = "https://www.djangoproject.com/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ georgewhewell lsix ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
diff -Nur a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py
|
||||
--- a/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:34:05.330568948 +0100
|
||||
+++ b/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:35:08.679095615 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
from django.conf import settings
|
||||
lib_path = settings.GDAL_LIBRARY_PATH
|
||||
except (AttributeError, ImportError, ImproperlyConfigured, OSError):
|
||||
- lib_path = None
|
||||
+ lib_path = "@gdal@/lib/libgdal@extension@"
|
||||
|
||||
if lib_path:
|
||||
lib_names = None
|
||||
diff -Nur a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
|
||||
--- a/django/contrib/gis/geos/libgeos.py 2020-07-09 22:34:05.331568941 +0100
|
||||
+++ b/django/contrib/gis/geos/libgeos.py 2020-07-09 22:36:24.863526276 +0100
|
||||
@@ -24,7 +24,7 @@
|
||||
from django.conf import settings
|
||||
lib_path = settings.GEOS_LIBRARY_PATH
|
||||
except (AttributeError, ImportError, ImproperlyConfigured, OSError):
|
||||
- lib_path = None
|
||||
+ lib_path = "@geos@/lib/libgeos_c@extension@"
|
||||
|
||||
# Setting the appropriate names for the GEOS-C library.
|
||||
if lib_path:
|
||||
@@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Docutils -- Python Documentation Utilities";
|
||||
description = "Python Documentation Utilities";
|
||||
homepage = "http://docutils.sourceforge.net/";
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dominate";
|
||||
version = "2.5.2";
|
||||
version = "2.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "456facce7a7ccfd9363948109cf1e978d48c58e46a46b01c71b4c0adc73b1928";
|
||||
sha256 = "76ec2cde23700a6fc4fee098168b9dee43b99c2f1dd0ca6a711f683e8eb7e1e4";
|
||||
};
|
||||
|
||||
doCheck = !isPy3k;
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-yasg";
|
||||
version = "1.17.1";
|
||||
version = "1.20.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5572e9d5baab9f6b49318169df9789f7399d0e3c7bdac8fdb8dfccf1d5d2b1ca";
|
||||
sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dropbox";
|
||||
version = "10.6.0";
|
||||
version = "10.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8a7c80eb70ec677a149173154a98cf1fa461c6b0e1a1d833c90e40a735eda2cd";
|
||||
sha256 = "08c1e0bbc16499e0138431e34777c35ea086734ff15ee5067b0df3424df2a9ec";
|
||||
};
|
||||
|
||||
# Set DROPBOX_TOKEN environment variable to a valid token.
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Eve";
|
||||
version = "1.1.3";
|
||||
version = "1.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ef335d13b798bc901636643f11455bab8b8698ddfe3a0b67bc251af1fd809b21";
|
||||
sha256 = "3a057277bba7144a0c15ab8c737dc8a1002e87e7284847aa011ce122e353418e";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "graspy";
|
||||
pname = "graspologic";
|
||||
version = "0.3";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "neurodata";
|
||||
repo = pname;
|
||||
owner = "microsoft";
|
||||
repo = "graspologic";
|
||||
rev = "v${version}";
|
||||
sha256 = "0lab76qiryxvwl6zrcikhnxil1xywl0wkkm2vzi4v9mdzpa7w29r";
|
||||
};
|
||||
@@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
homepage = "https://graspy.neurodata.io";
|
||||
description = "A package for graph statistical algorithms";
|
||||
license = licenses.asl20;
|
||||
license = licenses.asl20; # changing to `licenses.mit` in next release
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hass-nabucasa";
|
||||
version = "0.34.6";
|
||||
version = "0.37.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nabucasa";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1lkqwj58qr0vn7zf5mhrhaz973ahj9wjp4mgzvyja1gcdh6amv34";
|
||||
sha256 = "/GFNrLi1I69gUDIwnHa2q/pxkiRl9PKxpKtb56JrmuA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -18,24 +18,12 @@ buildPythonPackage rec {
|
||||
sed -i 's/"cryptography.*"/"cryptography"/' setup.py
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# relax pytz dependency
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NabuCasa/hass-nabucasa/commit/419e80feddc36c68384c032feda0057515b53eaa.patch";
|
||||
sha256 = "14dgwci8615cwcf27hg7b42s7da50xhyjys3yx446q7ipk8zw4x6";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
acme aiohttp atomicwrites snitun attrs warrant pycognito
|
||||
];
|
||||
|
||||
checkInputs = [ pytest pytest-aiohttp asynctest ];
|
||||
|
||||
# Asynctest's mocking is broken with python3.8
|
||||
# https://github.com/Martiusweb/asynctest/issues/132
|
||||
doCheck = pythonOlder "3.8";
|
||||
|
||||
checkPhase = ''
|
||||
pytest tests/
|
||||
'';
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "holoviews";
|
||||
version = "1.13.4";
|
||||
version = "1.13.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "34dc09dfb557f79515a011a72b343daf31b5e5d67403a008dded59bab658267c";
|
||||
sha256 = "3f8a00ce1cc67a388a3a949441accd7e7e9ca9960ba16b49ee96a50305105a01";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,34 +1,52 @@
|
||||
{ stdenv
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, h11
|
||||
, h2
|
||||
, pproxy
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, sniffio
|
||||
, uvicorn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpcore";
|
||||
version = "0.10.2";
|
||||
disabled = isPy27;
|
||||
version = "0.12.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "00gn8nfv814rg6fj7xv97mrra3fvx6fzjcgx9y051ihm6hxljdsi";
|
||||
sha256 = "0bwxn7m7r7h6k41swxj0jqj3nzi76wqxwbnry6y7d4qfh4m26g2j";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ h11 sniffio ];
|
||||
propagatedBuildInputs = [
|
||||
h11
|
||||
h2
|
||||
sniffio
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pproxy
|
||||
pytestCheckHook
|
||||
pytestcov
|
||||
uvicorn
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# these tests fail during dns lookups: httpcore.ConnectError: [Errno -2] Name or service not known
|
||||
"--ignore=tests/sync_tests/test_interfaces.py"
|
||||
];
|
||||
|
||||
# tests require pythonic access to mitmproxy, which isn't (yet?) packaged as
|
||||
# a pythonPackage.
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "httpcore" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A minimal HTTP client";
|
||||
meta = with lib; {
|
||||
description = "A minimal low-level HTTP client";
|
||||
homepage = "https://github.com/encode/httpcore";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.ris ];
|
||||
maintainers = with maintainers; [ ris ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,71 +1,61 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, brotli
|
||||
, certifi
|
||||
, chardet
|
||||
, h11
|
||||
, h2
|
||||
, httpcore
|
||||
, idna
|
||||
, rfc3986
|
||||
, sniffio
|
||||
, isPy27
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
, pytest-trio
|
||||
, pytestcov
|
||||
, trustme
|
||||
, uvicorn
|
||||
, brotli
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpx";
|
||||
version = "0.14.2";
|
||||
disabled = isPy27;
|
||||
version = "0.16.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "08b6k5g8car3bic90aw4ysb2zvsa5nm8qk3hk4dgamllnnxzl5br";
|
||||
sha256 = "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-cookie-test-timestamp.patch";
|
||||
url = "https://github.com/encode/httpx/pull/1270.patch";
|
||||
sha256 = "1hgrynac6226sgnyzmsr1nr15rn49gbfmk4c2kx3dwkbh6vr7jpd";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
brotli
|
||||
certifi
|
||||
chardet
|
||||
h11
|
||||
h2
|
||||
httpcore
|
||||
idna
|
||||
rfc3986
|
||||
sniffio
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
pytest-trio
|
||||
pytestcov
|
||||
trustme
|
||||
uvicorn
|
||||
brotli
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
PYTHONPATH=.:$PYTHONPATH pytest -k 'not (test_connect_timeout or test_elapsed_timer)'
|
||||
'';
|
||||
pythonImportsCheck = [ "httpx" ];
|
||||
|
||||
disabledTests = [
|
||||
# httpcore.ConnectError: [Errno 101] Network is unreachable
|
||||
"test_connect_timeout"
|
||||
# httpcore.ConnectError: [Errno -2] Name or service not known
|
||||
"test_async_proxy_close"
|
||||
"test_sync_proxy_close"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The next generation HTTP client";
|
||||
homepage = "https://github.com/encode/httpx";
|
||||
|
||||
52
pkgs/development/python-modules/ircrobots/default.nix
Normal file
52
pkgs/development/python-modules/ircrobots/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, anyio
|
||||
, asyncio-throttle
|
||||
, dataclasses
|
||||
, ircstates
|
||||
, async_stagger
|
||||
, async-timeout
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ircrobots";
|
||||
version = "0.3.3";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jesopo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ykn6ch7aazv2cx13q2gr94arh6f96d8hwjwnrcjai3i3x4q2pkq";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./relax-dependencies.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
anyio
|
||||
asyncio-throttle
|
||||
ircstates
|
||||
async_stagger
|
||||
async-timeout
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest test
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "ircrobots" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asynchronous bare-bones IRC bot framework for python3";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/jesopo/ircrobots";
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/requirements.txt b/requirements.txt
|
||||
index 87a2d31..4e0efb1 100644
|
||||
--- a/requirements.txt
|
||||
+++ b/requirements.txt
|
||||
@@ -1,6 +1,6 @@
|
||||
-anyio ==1.3.0
|
||||
+anyio
|
||||
asyncio-throttle ==1.0.1
|
||||
-dataclasses ==0.6
|
||||
-ircstates ==0.11.2
|
||||
+dataclasses; python_version < "3.7"
|
||||
+ircstates >=0.11.2
|
||||
async_stagger ==0.3.0
|
||||
async_timeout ==3.0.1
|
||||
48
pkgs/development/python-modules/ircstates/default.nix
Normal file
48
pkgs/development/python-modules/ircstates/default.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
, irctokens
|
||||
, pendulum
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ircstates";
|
||||
version = "0.11.3";
|
||||
disabled = pythonOlder "3.6"; # f-strings
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jesopo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1v8r6ma8gzvn5ym3xx9qlb0rc4l67pxr3z8njzk1ffxn1x3mxd3i";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "relax-pendulum-version.patch";
|
||||
url = "https://github.com/jesopo/ircstates/commit/f51f1b689e592020d1c91ccab6c03927aadb9f94.patch";
|
||||
sha256 = "0qbp3b9hlqbbx7b474q1mcgnzzzwcm4g89x26iqgmlgxzmv3y5xp";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
irctokens
|
||||
pendulum
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest test
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "ircstates" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "sans-I/O IRC session state parsing library";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/jesopo/ircstates";
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/irctokens/default.nix
Normal file
34
pkgs/development/python-modules/irctokens/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "irctokens";
|
||||
version = "2.0.0";
|
||||
disabled = pythonOlder "3.6"; # f-strings
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jesopo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0kpxn5paailm4xpdlnzxrhjrfgvvg5pp327wd8kl41a0wbqkj4zb";
|
||||
};
|
||||
|
||||
checkInputs = [ pyyaml ];
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest test
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "irctokens" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "RFC1459 and IRCv3 protocol tokeniser library for python3";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/jesopo/irctokens";
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,9 @@
|
||||
{ lib, fetchPypi, buildPythonPackage
|
||||
, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six
|
||||
, mock, nose }:
|
||||
, blessed, keyring, keyrings-alt, lxml, measurement, python-dateutil, requests, six, rich
|
||||
, pytestCheckHook, mock, nose }:
|
||||
|
||||
# TODO: Define this package in "all-packages.nix" using "toPythonApplication".
|
||||
# This currently errors out, complaining about not being able to find "etree" from "lxml" even though "lxml" is defined in "propagatedBuildInputs".
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "myfitnesspal";
|
||||
@@ -11,14 +14,18 @@ buildPythonPackage rec {
|
||||
sha256 = "c2275e91c794a3569a76c47c78cf2ff04d7f569a98558227e899ead7b30af0d6";
|
||||
};
|
||||
|
||||
# Remove overly restrictive version constraints on keyring and keyrings.alt
|
||||
# Remove overly restrictive version constraints
|
||||
postPatch = ''
|
||||
sed -i 's/keyring>=.*/keyring/' requirements.txt
|
||||
sed -i 's/keyrings.alt>=.*/keyrings.alt/' requirements.txt
|
||||
sed -i 's/rich>=.*/rich/' requirements.txt
|
||||
'';
|
||||
|
||||
checkInputs = [ mock nose ];
|
||||
propagatedBuildInputs = [ blessed keyring keyrings-alt lxml measurement python-dateutil requests six ];
|
||||
propagatedBuildInputs = [ blessed keyring keyrings-alt lxml measurement python-dateutil requests six rich ];
|
||||
|
||||
# Integration tests require an account to be set
|
||||
disabledTests = [ "test_integration" ];
|
||||
checkInputs = [ pytestCheckHook mock nose ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Access your meal tracking data stored in MyFitnessPal programatically";
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbsphinx";
|
||||
version = "0.7.1";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0j56bxdj08vn3q1804qwb1ywhga1mdg1awgm7i64wfpfwi8df2zm";
|
||||
sha256 = "369c16fe93af14c878d61fb3e81d838196fb35b27deade2cd7b95efe1fe56ea0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nibabel";
|
||||
version = "3.1.1";
|
||||
version = "3.2.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kir9g7kmy2qygyzczx8nj4b0sc6jjvqy0ssm39bxzqsr1vzzvxm";
|
||||
sha256 = "5827b644d1b0833603710dac198f5f8cbb9002769f97001a191e863b32f5956c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy h5py packaging pydicom ];
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "oauthenticator";
|
||||
version = "0.11.0";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ff1b4ba2458a6ee460c3c4161d780a12e94811b2daaa5d13acdb354fa21a9916";
|
||||
sha256 = "0bc5a4a0ee22689a863090993e0054485030847d0e9884afa1592ca388cccf4a";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver
|
||||
{ stdenv, fetchFromGitHub, cmake, git, swig, boost, udev, pc-ble-driver, pythonOlder
|
||||
, buildPythonPackage, enum34, wrapt, future, setuptools, scikit-build }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pc-ble-driver-py";
|
||||
version = "0.14.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NordicSemiconductor";
|
||||
|
||||
23
pkgs/development/python-modules/pinboard/default.nix
Normal file
23
pkgs/development/python-modules/pinboard/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pinboard";
|
||||
version = "2.1.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lionheart";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0ppc3vwv48ahqx6n5c7d7066zhi31cjdik0ma9chq6fscq2idgdf";
|
||||
};
|
||||
|
||||
# tests require an API key
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python wrapper for Pinboard.in";
|
||||
maintainers = with maintainers; [ djanatyn ];
|
||||
license = licenses.asl20;
|
||||
homepage = "http://github.com/lionheart/pinboard.py";
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchpatch, python, buildPythonPackage, isPy37
|
||||
{ buildPackages, stdenv, fetchpatch, python, buildPythonPackage, isPy37
|
||||
, protobuf, google_apputils, pyext, libcxx, isPy27
|
||||
, disabled, doCheck ? true }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
buildPythonPackage {
|
||||
inherit (protobuf) name src version;
|
||||
inherit (protobuf) pname src version;
|
||||
inherit disabled;
|
||||
doCheck = doCheck && !isPy27; # setuptools>=41.4 no longer collects correctly on python2
|
||||
|
||||
@@ -15,8 +15,10 @@ buildPythonPackage {
|
||||
++ optional (versionOlder protobuf.version "2.7.0") "-std=c++98"
|
||||
);
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
propagatedBuildInputs = [ google_apputils ];
|
||||
propagatedNativeBuildInputs = [ protobuf ]; # For protoc.
|
||||
propagatedNativeBuildInputs = [ buildPackages.protobuf ]; # For protoc.
|
||||
nativeBuildInputs = [ google_apputils pyext ];
|
||||
buildInputs = [ protobuf ];
|
||||
|
||||
@@ -43,9 +45,9 @@ buildPythonPackage {
|
||||
|
||||
preBuild = ''
|
||||
# Workaround for https://github.com/google/protobuf/issues/2895
|
||||
${python.interpreter} setup.py build
|
||||
${python.pythonForBuild.interpreter} setup.py build
|
||||
'' + optionalString (versionAtLeast protobuf.version "2.6.0") ''
|
||||
${python.interpreter} setup.py build_ext --cpp_implementation
|
||||
${python.pythonForBuild.interpreter} setup.py build_ext --cpp_implementation
|
||||
'';
|
||||
|
||||
installFlags = optional (versionAtLeast protobuf.version "2.6.0")
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PuLP";
|
||||
version = "2.3";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9d8ecf532868cc31fa9ff59ee5d5b2049600c5c902c18c794a2bad677c1f92e5";
|
||||
sha256 = "5bbe53f854fb3b689e4faacac5bdb5fa576cb270fc12c78edef827dd46a4fb50";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyparsing amply ];
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "py-multibase";
|
||||
version = "1.0.1";
|
||||
version = "1.0.3";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version ;
|
||||
sha256 = "6ed706ea321b487ba82e4172a9c82d61dacd675c865f576a937a94bca1a23443";
|
||||
sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py_stringmatching";
|
||||
version = "0.4.1";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c46db1e855cef596dfbbe1bd48fcabb30736479eff602c2bf88af10f998f1532";
|
||||
sha256 = "c87f62698fba1612a18f8f44bd57f0c4e70aac2d7ca6dfb6ed46dabd2194453c";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycognito";
|
||||
version = "0.1.3";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pvizeli";
|
||||
repo = "pycognito";
|
||||
rev = version;
|
||||
sha256 = "0wy6d274xda7v6dazv10h2vwig2avfyz8mh2lpd1a5k7i06r335r";
|
||||
sha256 = "HLzPrRon+ipcUZlD1l4nYSwSbdDLwOALy4ejGunjK0w=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyface";
|
||||
version = "7.0.1";
|
||||
version = "7.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "43943cc15889153b90191d9e1bd85e7a3709a6d57b6379220cb14017217fb999";
|
||||
sha256 = "a3e22a4d31429f0d5b9ff50aaac3fb47e4f7da678b6b0439a7b91ef40675f88d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools six traits ];
|
||||
|
||||
@@ -80,13 +80,19 @@ buildPythonPackage rec {
|
||||
--deselect tests/AlignmentFileHeader_test.py::TestHeaderBAM::test_header_content_is_as_expected \
|
||||
--deselect tests/AlignmentFileHeader_test.py::TestHeaderCRAM::test_dictionary_access_works \
|
||||
--deselect tests/AlignmentFileHeader_test.py::TestHeaderCRAM::test_header_content_is_as_expected \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testBAM2SAM \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testSAM2BAM \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testWriteUncompressedBAMFile \
|
||||
--deselect tests/AlignmentFile_test.py::TestDeNovoConstruction::testBAMWholeFile \
|
||||
--deselect tests/AlignmentFile_test.py::TestEmptyHeader::testEmptyHeader \
|
||||
--deselect tests/AlignmentFile_test.py::TestHeaderWithProgramOptions::testHeader \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testBAM2BAM \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testBAM2CRAM \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testBAM2SAM \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testFetchFromClosedFileObject \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testOpenFromFilename \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testSAM2BAM \
|
||||
--deselect tests/AlignmentFile_test.py::TestIO::testWriteUncompressedBAMFile \
|
||||
--deselect tests/AlignmentFile_test.py::TestIteratorRowAllBAM::testIterate \
|
||||
--deselect tests/StreamFiledescriptors_test.py::StreamTest::test_text_processing \
|
||||
--deselect tests/compile_test.py::BAMTest::testCount \
|
||||
tests/
|
||||
'';
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysmb";
|
||||
version = "1.2.4";
|
||||
version = "1.2.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
extension = "zip";
|
||||
sha256 = "0937cb44936805d403e8e678d7042feb6d85da950a7019e8ae6842a0720fb00c";
|
||||
sha256 = "7aedd5e003992c6c78b41a0da4bf165359a46ea25ab2a9a1594d13f471ad7287";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -25,6 +25,8 @@ buildPythonPackage rec {
|
||||
# https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "nmb" "smb" ];
|
||||
|
||||
meta = {
|
||||
description = "Experimental SMB/CIFS library written in Python to support file sharing between Windows and Linux machines";
|
||||
homepage = "https://miketeo.net/wp/index.php/projects/pysmb";
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-jose";
|
||||
version = "3.1.0";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mpdavis";
|
||||
repo = "python-jose";
|
||||
rev = version;
|
||||
sha256 = "1gnn0zy03pywj65ammy3sd07knzhjv8n5jhx1ir9bikgra9v0iqh";
|
||||
sha256 = "cSPIZrps0xFd4pPcQ4w/jFWOk2XYgd3mtE/sDzlytvY=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
@@ -23,6 +23,13 @@ buildPythonPackage rec {
|
||||
cryptography # optional dependency, but needed in tests
|
||||
];
|
||||
|
||||
# relax ecdsa deps
|
||||
patchPhase = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'ecdsa<0.15' 'ecdsa' \
|
||||
--replace 'ecdsa <0.15' 'ecdsa'
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/mpdavis/python-jose/issues/176
|
||||
"test_key_too_short"
|
||||
|
||||
@@ -4,8 +4,11 @@
|
||||
, appdirs
|
||||
, click
|
||||
, construct
|
||||
, croniter
|
||||
, cryptography
|
||||
, importlib-metadata
|
||||
, pytest
|
||||
, pytest-mock
|
||||
, zeroconf
|
||||
, attrs
|
||||
, pytz
|
||||
@@ -13,6 +16,7 @@
|
||||
, netifaces
|
||||
}:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-miio";
|
||||
version = "0.5.3";
|
||||
@@ -22,8 +26,17 @@ buildPythonPackage rec {
|
||||
sha256 = "3be5275b569844dfa267c80a1e23dc0957411dd501cae0ed3cccf43467031ceb";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "zeroconf>=0.25.1,<0.26.0" "zeroconf"
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytz>=2019.3,<2020.0" "pytz"
|
||||
substituteInPlace setup.py \
|
||||
--replace "cryptography>=2.9,<3.0" "cryptography"
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest pytest-mock];
|
||||
propagatedBuildInputs = [ appdirs click construct croniter cryptography importlib-metadata zeroconf attrs pytz tqdm netifaces ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-rtmidi";
|
||||
version = "1.4.5";
|
||||
version = "1.4.6";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3dd1909d0f44f03a4191131f1829cac2ee6a94f5a4be2a9606354748e594e704";
|
||||
sha256 = "1aqhsl9w3h0rwf3mhr8parjbxm2sb6sn5mac6725cvm535pqqyhz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
@@ -11,17 +11,20 @@
|
||||
, patchelf
|
||||
, pyyaml
|
||||
, requests
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
let
|
||||
pyVerNoDot = builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion;
|
||||
platform = if stdenv.isDarwin then "darwin" else "linux";
|
||||
srcs = import ./binary-hashes.nix;
|
||||
srcs = import ./binary-hashes.nix version;
|
||||
unsupported = throw "Unsupported system";
|
||||
version = "1.7.0";
|
||||
in buildPythonPackage {
|
||||
inherit version;
|
||||
|
||||
pname = "pytorch";
|
||||
# Don't forget to update pytorch to the same version.
|
||||
version = "1.6.0";
|
||||
|
||||
format = "wheel";
|
||||
|
||||
@@ -39,6 +42,17 @@ in buildPythonPackage {
|
||||
numpy
|
||||
pyyaml
|
||||
requests
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
# PyTorch are broken: the dataclasses wheel is required, but ships with
|
||||
# Python >= 3.7. Our dataclasses derivation is incompatible with >= 3.7.
|
||||
#
|
||||
# https://github.com/pytorch/pytorch/issues/46930
|
||||
#
|
||||
# Should be removed with the next PyTorch version.
|
||||
pipInstallFlags = [
|
||||
"--no-deps"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
version: {
|
||||
x86_64-linux-37 = {
|
||||
url = "https://download.pytorch.org/whl/cu102/torch-1.6.0-cp37-cp37m-linux_x86_64.whl";
|
||||
sha256 = "0xhwv68j8gvahfzcp43bqp2x71iwv6zjhkw2f1hb82xps40mrml7";
|
||||
url = "https://download.pytorch.org/whl/cu102/torch-${version}-cp37-cp37m-linux_x86_64.whl";
|
||||
sha256 = "0cvafwzd44d7i2d0y01lyk75lhxffcf6c94cx0wla0cnhcg9mqlf";
|
||||
};
|
||||
x86_64-linux-38 = {
|
||||
url = "https://download.pytorch.org/whl/cu102/torch-1.6.0-cp38-cp38-linux_x86_64.whl";
|
||||
sha256 = "05m2l04wqzw5xvjam6zwvlmc3979cksl3hrdqc2aikrv4hz8fmsk";
|
||||
url = "https://download.pytorch.org/whl/cu102/torch-${version}-cp38-cp38-linux_x86_64.whl";
|
||||
sha256 = "1vxswkb2gzp87sbb5ycvyvs8aw1szp3v2mwdn4mp47yarlnbx8r6";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rich";
|
||||
version = "8.0.0";
|
||||
version = "9.1.0";
|
||||
|
||||
# tests not included in pypi tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "willmcgugan";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0hv27b22x7dbx1i7nzsd8y8fymmvdak2hcx9242jwk4c1a7jr151";
|
||||
sha256 = "18iha0fs8vm0j11k39yxj26h8qxrp27ijhx6h1yyizbygmr5b5nk";
|
||||
};
|
||||
format = "pyproject";
|
||||
|
||||
|
||||
29
pkgs/development/python-modules/setuptools-rust/default.nix
Normal file
29
pkgs/development/python-modules/setuptools-rust/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, semantic-version
|
||||
, setuptools
|
||||
, setuptools_scm
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "setuptools-rust";
|
||||
version = "0.11.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1p21sw77197m7pciy8g25bwwaakq1675h0x1lis9sypzr46p2s11";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
propagatedBuildInputs = [ semantic-version setuptools toml ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Setuptools plugin for Rust support";
|
||||
homepage = "https://github.com/PyO3/setuptools-rust";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ danieldk ];
|
||||
};
|
||||
}
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Shapely";
|
||||
version = "1.7.0";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "07lmrihj6pa7f99m97hbf2anqlhhwippcdz03bqkyihnlkhry6p2";
|
||||
sha256 = "0adiz4jwmwxk7k1awqifb1a9bj5x4nx4gglb5dz9liam21674h8n";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -2,7 +2,7 @@ diff --git a/shapely/geos.py b/shapely/geos.py
|
||||
index d5a67d2..19b7ffc 100644
|
||||
--- a/shapely/geos.py
|
||||
+++ b/shapely/geos.py
|
||||
@@ -61,123 +61,11 @@ def load_dll(libname, fallbacks=None, mode=DEFAULT_MODE):
|
||||
@@ -61,127 +61,10 @@ def load_dll(libname, fallbacks=None, mode=DEFAULT_MODE):
|
||||
"Could not find lib {} or load any of its variants {}.".format(
|
||||
libname, fallbacks or []))
|
||||
|
||||
@@ -80,7 +80,11 @@ index d5a67d2..19b7ffc 100644
|
||||
- ]
|
||||
- _lgeos = load_dll('geos_c', fallbacks=alt_paths)
|
||||
-
|
||||
- free = load_dll('c').free
|
||||
- # ctypes.CDLL(None) internally calls dlopen(NULL), and as the dlopen
|
||||
- # manpage says, "If filename is NULL, then the returned handle is for the
|
||||
- # main program". This way we can let the linker do the work to figure out
|
||||
- # which libc Python is actually using.
|
||||
- free = CDLL(None).free
|
||||
- free.argtypes = [c_void_p]
|
||||
- free.restype = None
|
||||
-
|
||||
@@ -112,7 +116,7 @@ index d5a67d2..19b7ffc 100644
|
||||
- except WindowsError:
|
||||
- # XXX: See http://trac.gispython.org/projects/PCL/ticket/149
|
||||
- pass
|
||||
|
||||
-
|
||||
-elif sys.platform == 'sunos5':
|
||||
- _lgeos = load_dll('geos_c', fallbacks=['libgeos_c.so.1', 'libgeos_c.so'])
|
||||
- free = CDLL('libc.so.1').free
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "snowflake-connector-python";
|
||||
version = "2.3.3";
|
||||
version = "2.3.4";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "18w6ibpibqj3v136jjfklbax1l4y80v8mfk19apxlaprf6wvwpwy";
|
||||
sha256 = "5a072ee61ef156e5938e04447f0b99248b87ef262e498b5e5002f5b579cd7fb2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,28 +1,32 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spotipy";
|
||||
version = "2.16.0";
|
||||
version = "2.16.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "315eadd1248053ed336b4d3adbf2e3c32895fdbb0cfcd170542c848c8fd45649";
|
||||
sha256 = "1f50xczv8kgly6wz6zrvqzwdj6nvhdlgx8wnrhmbipjrb6qacr25";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
checkInputs = [ mock ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "mock==2.0.0" "mock"
|
||||
'';
|
||||
# tests want to access the spotify API
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [
|
||||
"spotipy"
|
||||
"spotipy.oauth2"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "spotipy" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://spotipy.readthedocs.org/";
|
||||
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
||||
description = "A light weight Python library for the Spotify Web API";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.rvolosatovs ];
|
||||
maintainers = with maintainers; [ rvolosatovs ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -445,5 +445,7 @@ in buildPythonPackage {
|
||||
libtensorflow = bazel-build.out;
|
||||
};
|
||||
|
||||
inherit (bazel-build) meta;
|
||||
meta = bazel-build.meta // {
|
||||
broken = gast.version != "0.3.2";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
# XLA without CUDA is broken
|
||||
, xlaSupport ? cudaSupport
|
||||
# Default from ./configure script
|
||||
, cudaCapabilities ? [ "3.5" "5.2" ]
|
||||
, cudaCapabilities ? [ "sm_35" "sm_50" "sm_60" "sm_70" "sm_75" "compute_80" ]
|
||||
, sse42Support ? stdenv.hostPlatform.sse4_2Support
|
||||
, avx2Support ? stdenv.hostPlatform.avx2Support
|
||||
, fmaSupport ? stdenv.hostPlatform.fmaSupport
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, maturin
|
||||
, pipInstallHook
|
||||
, pytest
|
||||
, setuptools-rust
|
||||
, wheel
|
||||
, numpy
|
||||
, python
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
}:
|
||||
|
||||
@@ -18,10 +20,18 @@ let
|
||||
url = "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-merges.txt";
|
||||
sha256 = "1idd4rvkpqqbks51i2vjbd928inw7slij9l4r063w3y5fd3ndq8w";
|
||||
};
|
||||
albertVocab = fetchurl {
|
||||
url = "https://s3.amazonaws.com/models.huggingface.co/bert/albert-base-v1-tokenizer.json";
|
||||
sha256 = "1hra9pn8rczx7378z88zjclw2qsdrdwq20m56sy42s2crbas6akf";
|
||||
};
|
||||
bertVocab = fetchurl {
|
||||
url = "https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-vocab.txt";
|
||||
sha256 = "18rq42cmqa8zanydsbzrb34xwy4l6cz1y900r4kls57cbhvyvv07";
|
||||
};
|
||||
norvigBig = fetchurl {
|
||||
url = "https://norvig.com/big.txt";
|
||||
sha256 = "0yz80icdly7na03cfpl0nfk5h3j3cam55rj486n03wph81ynq1ps";
|
||||
};
|
||||
openaiVocab = fetchurl {
|
||||
url = "https://s3.amazonaws.com/models.huggingface.co/bert/openai-gpt-vocab.json";
|
||||
sha256 = "0y40gc9bixj5rxv674br1rxmxkd3ly29p80x1596h8yywwcrpx7x";
|
||||
@@ -32,38 +42,34 @@ let
|
||||
};
|
||||
in rustPlatform.buildRustPackage rec {
|
||||
pname = "tokenizers";
|
||||
version = "0.8.1";
|
||||
version = "0.9.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = pname;
|
||||
rev = "python-v${version}";
|
||||
sha256 = "0sxdwx05hr87j2z32rk4rgwn6a26w9r7m5fgj6ah1sgagiiyxbjw";
|
||||
sha256 = "0rsm1g5zfq3ygdb3s8v9xqqpgfzvvkc4n5ik3ahy8sw7pyjljb4m";
|
||||
};
|
||||
|
||||
# Update parking_lot to be compatible with recent Rust versions, that
|
||||
# replace asm! by llvm_asm!:
|
||||
#
|
||||
# https://github.com/Amanieu/parking_lot/pull/223
|
||||
#
|
||||
# Remove once upstream updates this dependency.
|
||||
cargoPatches = [ ./update-parking-lot.diff ];
|
||||
|
||||
cargoSha256 = "0cdkxmj8z2wdspn6r62lqlpvd0sj1z0cmb1zpqaajxvr0b2kjlj8";
|
||||
cargoSha256 = "0yn699dq9hdjh7fyci99ni8mmd5qdhzrsi80grzgf5cch8g38rbi";
|
||||
|
||||
sourceRoot = "source/bindings/python";
|
||||
|
||||
nativeBuildInputs = [
|
||||
maturin
|
||||
pipInstallHook
|
||||
setuptools-rust
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
python
|
||||
];
|
||||
|
||||
# tokenizers uses pyo3, which requires Rust nightly.
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
installCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
doInstallCheck = true;
|
||||
@@ -74,51 +80,21 @@ in rustPlatform.buildRustPackage rec {
|
||||
( cd $sourceRoot/tests/data
|
||||
ln -s ${robertaVocab} roberta-base-vocab.json
|
||||
ln -s ${robertaMerges} roberta-base-merges.txt
|
||||
ln -s ${albertVocab} albert-base-v1-tokenizer.json
|
||||
ln -s ${bertVocab} bert-base-uncased-vocab.txt
|
||||
ln -s ${norvigBig} big.txt
|
||||
ln -s ${openaiVocab} openai-gpt-vocab.json
|
||||
ln -s ${openaiMerges} openai-gpt-merges.txt )
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
# pyo3's build check verifies that Rust is a nightly
|
||||
# version. Disable this check.
|
||||
substituteInPlace $NIX_BUILD_TOP/$cargoDepsCopy/pyo3/build.rs \
|
||||
--replace "check_rustc_version()?;" ""
|
||||
|
||||
# Patching the vendored dependency invalidates the file
|
||||
# checksums, so remove them. This should be safe, since
|
||||
# this is just a copy of the vendored dependencies and
|
||||
# the integrity of the vendored dependencies is validated
|
||||
# by cargoSha256.
|
||||
sed -r -i 's|"files":\{[^}]+\}|"files":{}|' \
|
||||
$NIX_BUILD_TOP/$cargoDepsCopy/pyo3/.cargo-checksum.json
|
||||
|
||||
# Maturin uses the crate name as the wheel name.
|
||||
substituteInPlace Cargo.toml \
|
||||
--replace "tokenizers-python" "tokenizers"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
maturin build --release --manylinux off
|
||||
${python.interpreter} setup.py bdist_wheel
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
# Put the wheels where the pip install hook can find them.
|
||||
install -Dm644 -t dist target/wheels/*.whl
|
||||
pipInstallPhase
|
||||
'';
|
||||
|
||||
installCheckInputs = [
|
||||
pytest
|
||||
requests
|
||||
];
|
||||
|
||||
installCheckPhase = ''
|
||||
# Append paths, or the binding's tokenizer module will be
|
||||
# used, since the test directories have __init__.py
|
||||
pytest --import-mode=append
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/huggingface/tokenizers";
|
||||
description = "Fast State-of-the-Art Tokenizers optimized for Research and Production";
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
diff --git a/bindings/python/Cargo.lock b/bindings/python/Cargo.lock
|
||||
index f50db71..ea71817 100644
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -269,7 +269,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "lock_api"
|
||||
-version = "0.3.3"
|
||||
+version = "0.3.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -337,16 +337,16 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot"
|
||||
-version = "0.10.0"
|
||||
+version = "0.10.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
- "lock_api 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
- "parking_lot_core 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
+ "lock_api 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
+ "parking_lot_core 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot_core"
|
||||
-version = "0.7.0"
|
||||
+version = "0.7.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -409,7 +409,7 @@ dependencies = [
|
||||
"inventory 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
- "parking_lot 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
+ "parking_lot 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"paste 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pyo3cls 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"regex 1.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -768,7 +768,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
"checksum itoa 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "b8b7a7c0c47db5545ed3fef7468ee7bb5b74691498139e4b3f6a20685dc6dd8e"
|
||||
"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||
"checksum libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)" = "dea0c0405123bba743ee3f91f49b1c7cfb684eef0da0a50110f758ccf24cdff0"
|
||||
-"checksum lock_api 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "79b2de95ecb4691949fea4716ca53cdbcfccb2c612e19644a8bad05edcf9f47b"
|
||||
+"checksum lock_api 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
|
||||
"checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
||||
"checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
|
||||
"checksum memoffset 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b4fc2c02a7e374099d4ee95a193111f72d2110197fe200272371758f6c3643d8"
|
||||
@@ -777,8 +777,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
"checksum number_prefix 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b02fc0ff9a9e4b35b3342880f48e896ebf69f2967921fe8646bf5b7125956a"
|
||||
"checksum onig 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bd91ccd8a02fce2f7e8a86655aec67bc6c171e6f8e704118a0e8c4b866a05a8a"
|
||||
"checksum onig_sys 69.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3814583fad89f3c60ae0701d80e87e1fd3028741723deda72d0d4a0ecf0cb0db"
|
||||
-"checksum parking_lot 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "92e98c49ab0b7ce5b222f2cc9193fc4efe11c6d0bd4f648e374684a6857b1cfc"
|
||||
-"checksum parking_lot_core 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7582838484df45743c8434fbff785e8edf260c28748353d44bc0da32e0ceabf1"
|
||||
+"checksum parking_lot 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e"
|
||||
+"checksum parking_lot_core 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
|
||||
"checksum paste 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ab4fb1930692d1b6a9cfabdde3d06ea0a7d186518e2f4d67660d8970e2fa647a"
|
||||
"checksum paste-impl 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "a62486e111e571b1e93b710b61e8f493c0013be39629b714cb166bdb06aa5a8a"
|
||||
"checksum pkg-config 0.3.17 (registry+https://github.com/rust-lang/crates.io-index)" = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677"
|
||||
@@ -7,6 +7,7 @@
|
||||
, requests
|
||||
, numpy
|
||||
, parameterized
|
||||
, protobuf
|
||||
, sacremoses
|
||||
, sentencepiece
|
||||
, timeout-decorator
|
||||
@@ -17,19 +18,19 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "transformers";
|
||||
version = "3.3.1";
|
||||
version = "3.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1j9nzhl0zw5z9rnvzfih7v6bax353rxp05b3f0cvkii3b5dbkc2j";
|
||||
sha256 = "1v09gryxsg57d2cjwagna1535m8mbxlazdbhsww210lxa818m5qj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
boto3
|
||||
filelock
|
||||
numpy
|
||||
protobuf
|
||||
regex
|
||||
requests
|
||||
sacremoses
|
||||
@@ -44,11 +45,6 @@ buildPythonPackage rec {
|
||||
timeout-decorator
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "tokenizers == 0.8.1.rc2" "tokenizers>=0.8"
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
export HOME="$TMPDIR"
|
||||
|
||||
@@ -67,8 +63,10 @@ buildPythonPackage rec {
|
||||
|
||||
# Disable tests that require network access.
|
||||
disabledTests = [
|
||||
"PegasusTokenizationTest"
|
||||
"T5TokenizationTest"
|
||||
"BlenderbotSmallTokenizerTest"
|
||||
"Blenderbot3BTokenizerTests"
|
||||
"TokenizationTest"
|
||||
"TestTokenizationBart"
|
||||
"test_all_tokenizers"
|
||||
"test_batch_encoding_is_fast"
|
||||
"test_batch_encoding_pickle"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
@@ -49,6 +50,7 @@ buildPythonPackage rec {
|
||||
rlp
|
||||
shamir-mnemonic
|
||||
typing-extensions
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
trezor-udev-rules
|
||||
];
|
||||
|
||||
|
||||
@@ -25,12 +25,12 @@ with stdenv.lib;
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "trytond";
|
||||
version = "5.6.7";
|
||||
version = "5.6.8";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "aca005639931835f4f0eaa92ae48ffebb94551af91649a96018694ea448ca0ae";
|
||||
sha256 = "330067d7319a50b9fb15e89d224e89ab28bc363926774adf7fa119f681b106b6";
|
||||
};
|
||||
|
||||
# Tells the tests which database to use
|
||||
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gtk3 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "xdot.py is an interactive viewer for graphs written in Graphviz's dot";
|
||||
description = "An interactive viewer for graphs written in Graphviz's dot";
|
||||
homepage = "https://github.com/jrfonseca/xdot.py";
|
||||
license = licenses.lgpl3Plus;
|
||||
};
|
||||
|
||||
@@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A schema and validator for YAML.";
|
||||
description = "A schema and validator for YAML";
|
||||
homepage = "https://github.com/23andMe/Yamale";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rtburns-jpl ];
|
||||
|
||||
@@ -1,22 +1,44 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pyserial, pyserial-asyncio, zigpy
|
||||
, asynctest, pytest, pytest-asyncio }:
|
||||
{ lib
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, zigpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy-cc";
|
||||
version = "0.5.1";
|
||||
version = "0.5.2";
|
||||
# https://github.com/Martiusweb/asynctest/issues/152
|
||||
# broken by upstream python bug with asynctest and
|
||||
# is used exclusively by home-assistant with python 3.8
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
propagatedBuildInputs = [ pyserial pyserial-asyncio zigpy ];
|
||||
checkInputs = [ asynctest pytest pytest-asyncio ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06759615b28c45beaa5f03e594769a373d41674b96aeafefccd5c4e1c67e25ca";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy-cc";
|
||||
rev = version;
|
||||
sha256 = "U3S8tQ3zPlexZDt5GvCd+rOv7CBVeXJJM1NGe7nRl2o=";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
propagatedBuildInputs = [
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
zigpy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library which communicates with Texas Instruments CC2531 radios for zigpy";
|
||||
homepage = "http://github.com/sanyatuning/zigpy-cc";
|
||||
homepage = "https://github.com/zigpy/zigpy-cc";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ etu mvnetbiz ];
|
||||
platforms = platforms.linux;
|
||||
|
||||
@@ -1,20 +1,42 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pyserial, pyserial-asyncio, zigpy
|
||||
, pytest }:
|
||||
{ lib
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, zigpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy-xbee";
|
||||
version = "0.12.1";
|
||||
version = "0.13.0";
|
||||
# https://github.com/Martiusweb/asynctest/issues/152
|
||||
# broken by upstream python bug with asynctest and
|
||||
# is used exclusively by home-assistant with python 3.8
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
buildInputs = [ pyserial pyserial-asyncio zigpy ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "09488hl27qjv8shw38iiyzvzwcjkc0k4n00l2bfn1ac443xzw0vh";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy-xbee";
|
||||
rev = version;
|
||||
sha256 = "Krdqb9bYKwUC2cdNppB2+tLwWjzmzIHhXnQ1KRduofU=";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
buildInputs = [
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
zigpy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library which communicates with XBee radios for zigpy";
|
||||
homepage = "http://github.com/zigpy/zigpy-xbee";
|
||||
license = licenses.gpl3Plus;
|
||||
|
||||
@@ -1,22 +1,44 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pyserial, pyserial-asyncio, zigpy
|
||||
, pytest }:
|
||||
{ lib
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, zigpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy-zigate";
|
||||
version = "0.6.1";
|
||||
version = "0.6.2";
|
||||
# https://github.com/Martiusweb/asynctest/issues/152
|
||||
# broken by upstream python bug with asynctest and
|
||||
# is used exclusively by home-assistant with python 3.8
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
buildInputs = [ pyserial pyserial-asyncio zigpy ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0xxqv65drrr96b9ncwsx9ayd369lpwimj1jjb0d7j6l9lil0wmf5";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy-zigate";
|
||||
rev = version;
|
||||
sha256 = "EV6DV+BytUcPMtzYVKDnq/Uv2efg3stjL5uVlL62II4=";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
buildInputs = [
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
zigpy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library which communicates with ZiGate radios for zigpy";
|
||||
homepage = "http://github.com/doudz/zigpy-zigate";
|
||||
homepage = "https://github.com/zigpy/zigpy-zigate";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ etu mvnetbiz ];
|
||||
platforms = platforms.linux;
|
||||
|
||||
55
pkgs/development/python-modules/zigpy-znp/default.nix
Normal file
55
pkgs/development/python-modules/zigpy-znp/default.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{ stdenv
|
||||
, async-timeout
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, coloredlogs
|
||||
, coveralls
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytest-timeout
|
||||
, pytestcov
|
||||
, pytestCheckHook
|
||||
, voluptuous
|
||||
, zigpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy-znp";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zha-ng";
|
||||
repo = "zigpy-znp";
|
||||
rev = "v${version}";
|
||||
sha256 = "a98RYPvcYE1NPERmPo1jPwMf86N+0297u4pOKuaB6u4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
coloredlogs
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
voluptuous
|
||||
zigpy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
coveralls
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
pytest-timeout
|
||||
pytestcov
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library for zigpy which communicates with TI ZNP radios";
|
||||
homepage = "https://github.com/zha-ng/zigpy-znp";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ mvnetbiz ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,20 +1,44 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, aiohttp, crccheck, pycryptodome, pycrypto, voluptuous
|
||||
, pytest, pytest-asyncio, asynctest }:
|
||||
{ lib
|
||||
, aiohttp
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, crccheck
|
||||
, fetchFromGitHub
|
||||
, pycrypto
|
||||
, pycryptodome
|
||||
, pytest-aiohttp
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, tox
|
||||
, voluptuous }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy";
|
||||
version = "0.22.2";
|
||||
version = "0.26.0";
|
||||
|
||||
propagatedBuildInputs = [ aiohttp crccheck pycrypto pycryptodome voluptuous ];
|
||||
checkInputs = [ pytest pytest-asyncio asynctest ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a43129932c6e4af0d2d57542218faf7695e2424ce18a5a8915d016e1303f5e44";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy";
|
||||
rev = version;
|
||||
sha256 = "ba8Ru6RCbFOHhctFtklnrxVD3uEpxF4XDvO5RMgXPBs=";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
crccheck
|
||||
pycrypto
|
||||
pycryptodome
|
||||
voluptuous
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-aiohttp
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library implementing a ZigBee stack";
|
||||
homepage = "https://github.com/zigpy/zigpy";
|
||||
license = licenses.gpl3Plus;
|
||||
|
||||
Reference in New Issue
Block a user