mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 15:11:30 +00:00
Merge branch 'master' into staging-next
This commit is contained in:
@@ -8,14 +8,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiolyric";
|
||||
version = "1.0.5";
|
||||
version = "1.0.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "timmo001";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "00kq3dsjcfhjzn585phb3g168dbg53wrqq7g8a4gljs49c2mf5qx";
|
||||
sha256 = "1lnzsdw6kvgk0762f3vyw4xfzn7qkvsff16q61gm0ryjqg9j8whx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, pythonOlder
|
||||
, pygments
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, pytest-cov
|
||||
, uvloop
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiorun";
|
||||
version = "2020.6.1";
|
||||
version = "2020.12.1";
|
||||
format = "flit";
|
||||
|
||||
disabled = isPy27;
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cjrh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "00mq5ylhhdfdqrh7zdqabf3wy85jrkqvgfb1421ll46fsjim2d14";
|
||||
sha256 = "sha256-ktc2cmoPNYcsVyKCWs+ivhV5onywFIrdDRBiBKrdiF4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -28,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytestcov
|
||||
pytest-cov
|
||||
uvloop
|
||||
];
|
||||
|
||||
@@ -43,6 +42,6 @@ buildPythonPackage rec {
|
||||
description = "Boilerplate for asyncio applications";
|
||||
homepage = "https://github.com/cjrh/aiorun";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asyncwhois";
|
||||
version = "0.3.0";
|
||||
version = "0.3.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pogzyb";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1514fz942yix7fh4yg982mxjp8c0qb6a0i4fw5wsc3xx4g86zcdg";
|
||||
sha256 = "1wp6pwnc1inzzn9nhkwq9m9ab1aylw0hzq94w6p2dsm2njfqma8h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "azure-mgmt-datafactory";
|
||||
version = "1.0.0";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "d4f3984eca74b1e3691467aadc09626e578ed1fc5ef410872d474f3e7653916a";
|
||||
sha256 = "433ad8e83bd8df4abc5af47a0e3a7a4515f79931db4036f2bccd65b5a9e88bfb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boto3";
|
||||
version = "1.17.27"; # N.B: if you change this, change botocore and awscli to a matching version
|
||||
version = "1.17.29"; # N.B: if you change this, change botocore and awscli to a matching version
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-+kGYf59xNoATdnMG2VIrYnlGoBtIQ5OKJvsZzIrbBsA=";
|
||||
sha256 = "sha256-MTlvyv/fwPRltN524eyuU4lOuGmwAP+lSqFpOpjbOjw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "botocore";
|
||||
version = "1.20.27"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
version = "1.20.29"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-RHeAPwdkn02AsX0FSCDnoJuyyweS0N7MKBIQi8N1nEo=";
|
||||
sha256 = "sha256-GEt9JrBmn9ZayBk2YjdtEmfYAOAFtpQStXzILF/76TU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
sqlalchemy_migrate, dateutil, txaio, autobahn, pyjwt, pyyaml, treq,
|
||||
txrequests, pypugjs, boto3, moto, mock, python-lz4, setuptoolsTrial,
|
||||
isort, pylint, flake8, buildbot-worker, buildbot-pkg, buildbot-plugins,
|
||||
parameterized, git, openssh, glibcLocales, nixosTests }:
|
||||
parameterized, git, openssh, glibcLocales, ldap3, nixosTests }:
|
||||
|
||||
let
|
||||
withPlugins = plugins: buildPythonPackage {
|
||||
@@ -25,11 +25,11 @@ let
|
||||
|
||||
package = buildPythonPackage rec {
|
||||
pname = "buildbot";
|
||||
version = "3.0.0";
|
||||
version = "3.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0li47fpm398dk69q6g2zjaxx46w00g3n0jszz88kf57sakri553y";
|
||||
sha256 = "0iywcvq1sx9z5f37pw7g9qqm19fr3bymzawb0i2afm737hxr2xfp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -67,6 +67,9 @@ let
|
||||
git
|
||||
openssh
|
||||
glibcLocales
|
||||
# optional dependency that was accidentally made required for tests
|
||||
# https://github.com/buildbot/buildbot/pull/5857
|
||||
ldap3
|
||||
];
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -6,7 +6,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ihcxdkbm1lq79fdjmcrj316zh6sjlc3162yynww8nggv2mlnz6v";
|
||||
sha256 = "1vraxisvgnl9q2rgsmfdh1ywja125s97xqicrdx9mbmrwaka2a40";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0pk7h5wwvmdn74ngj5rspz7z9y80ryzgqd2z2qy7kf9chpz7qczk";
|
||||
sha256 = "0lzlghgsb247w0aw0x7vqw4f980kfbbbvjw48fcq9951qcqkr1sf";
|
||||
};
|
||||
|
||||
# Remove unneccessary circular dependency on buildbot
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1y9dpxi7r5r2ya5y0i28b4g5fvla6wrbjz9rffqaqldf4h316jx2";
|
||||
sha256 = "1sqmmxxi0npjcha3xfyy4ldqaks8hmlhilnyvzsfi56n9s96z1cj";
|
||||
};
|
||||
|
||||
buildInputs = [ buildbot-pkg ];
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0vhnqqxl693b2d14ayifpjz8zlg3dngl127svr08amzmbad7irh1";
|
||||
sha256 = "1w4mf8gi71ycf0m93cv1qqly36xnnrmpangzv0pvx23czs96lcms";
|
||||
};
|
||||
|
||||
buildInputs = [ buildbot-pkg ];
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1dgs33z3sjr3s8ymqyxjkx2g6iah3p91ng9hxllmyyp4xpxaxyhk";
|
||||
sha256 = "1a9ssl0plzrs150n958h7aasm0h64whixckfl1y2y3750qy3vrd2";
|
||||
};
|
||||
|
||||
buildInputs = [ buildbot-pkg ];
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06j6f2k0r8nyh8swh689cy4zq50lmy5glx0pa3zdpnk02k4x3q72";
|
||||
sha256 = "1wcli3vymsqc720jj23ir86lirshb3p8szp7m21lz13g9mpj0idl";
|
||||
};
|
||||
|
||||
buildInputs = [ buildbot-pkg ];
|
||||
|
||||
@@ -7,7 +7,7 @@ buildPythonPackage (rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zrd9h9i7fnmh81zvscxzq3rspyvjvidzbgcziq2m0z522krs8qq";
|
||||
sha256 = "1xvn0m8vijzfrm5sdls3n4ca8iyrnxsprl6dj15f7zy9rms4m47p";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ twisted future ];
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "0.18.3";
|
||||
version = "0.18.4";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "v${version}";
|
||||
sha256 = "1wbwccwizndiww9a3x1jhixzpcg2qmqlxidk2rqnrzvp04lb8b0q";
|
||||
sha256 = "16yhl1xgrgkyqnmbw9in3y7ypcxvvy21h32v50cd73a3iw4x27d0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
, fetchFromGitHub
|
||||
, dill
|
||||
, filelock
|
||||
, fsspec
|
||||
, huggingface-hub
|
||||
, multiprocess
|
||||
, numpy
|
||||
, pandas
|
||||
@@ -14,18 +16,20 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "datasets";
|
||||
version = "1.1.2";
|
||||
version = "1.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-upXZ2rOfmjnJbDo6RMGeHv/fe10RQAf/zwDWWKdt6SA=";
|
||||
hash = "sha256-is8TS84varARWyfeDTbQH0pcYFTk0PcEyK183emB4GE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dill
|
||||
filelock
|
||||
fsspec
|
||||
huggingface-hub
|
||||
multiprocess
|
||||
numpy
|
||||
pandas
|
||||
@@ -36,7 +40,9 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace '"tqdm>=4.27,<4.50.0"' '"tqdm>=4.27"'
|
||||
substituteInPlace setup.py \
|
||||
--replace '"tqdm>=4.27,<4.50.0"' '"tqdm>=4.27"' \
|
||||
--replace "huggingface_hub==0.0.2" "huggingface_hub>=0.0.2"
|
||||
'';
|
||||
|
||||
# Tests require pervasive internet access.
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Deprecated";
|
||||
version = "1.2.11";
|
||||
version = "1.2.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "471ec32b2755172046e28102cd46c481f21c6036a0ec027521eba8521aa4ef35";
|
||||
sha256 = "6d2de2de7931a968874481ef30208fd4e08da39177d61d3d4ebdf4366e7dbca1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ wrapt ];
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, freezegun }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.0.0";
|
||||
version = "5.0.0";
|
||||
pname = "ftputil";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d494c47f24fd3f8fbe92d40d90e0902c0e04288f200688af2b16d6b46fe441e1";
|
||||
sha256 = "0dc82fa0a8ea385e8222b72bedb1ec31caac07822b6a1a9139adc98b0b051d06";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest freezegun ];
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-logging";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8932ac382eee6af85cd08400a77586dd3139fbf40b61db757c4c492490899741";
|
||||
sha256 = "b5675ce159db4e9c1d755003b76190460766f426a7c3c1519014cdd5ce66e890";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-secret-manager";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "97a46d2318f00c1c6ae1a4ab587e338677c5cc1651d7c6304982d74fa364dd9d";
|
||||
sha256 = "4df4b7e3f83bc12d6bd29e69608172586b6ddfc7586dd2a2fd70cc4f18ed05c7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,28 +1,32 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-cov
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, responses
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "googlemaps";
|
||||
version = "4.4.2";
|
||||
disabled = isPy27;
|
||||
version = "4.4.5";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "googlemaps";
|
||||
repo = "google-maps-services-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "DYhW1OGce/0gY7Jmwq6iM45PxLyXIYo4Cfg2u6Xuyg4=";
|
||||
sha256 = "sha256-Rdfp98UqTMbqcOpkzh0Dz8fNSSbuvCnCztCkxiBgaAA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
checkInputs = [ pytestCheckHook responses pytestcov ];
|
||||
checkInputs = [
|
||||
pytest-cov
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# touches network
|
||||
@@ -30,6 +34,8 @@ buildPythonPackage rec {
|
||||
"test_transit_without_time"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "googlemaps" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/googlemaps/google-maps-services-python";
|
||||
description = "Python client library for Google Maps API Web Services";
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{ buildPythonPackage
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hyperopt
|
||||
, lib
|
||||
, mock
|
||||
, numpy
|
||||
, poetry
|
||||
, poetry-core
|
||||
, prometheus_client
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -24,23 +25,39 @@ buildPythonPackage rec {
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'numpy = "1.18.5"' 'numpy = "^1.18.5"' \
|
||||
--replace 'hyperopt = "0.1.2"' 'hyperopt = ">=0.1.2"'
|
||||
--replace 'hyperopt = "0.1.2"' 'hyperopt = ">=0.1.2"' \
|
||||
--replace 'wheel = "^0.35.1"' 'wheel = "^0.36"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
checkInputs = [ mock pytestCheckHook ];
|
||||
propagatedBuildInputs = [ hyperopt prometheus_client numpy ];
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
hyperopt
|
||||
prometheus_client
|
||||
numpy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
requests
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOSTNAME=myhost-experimentId
|
||||
'';
|
||||
|
||||
preCheck = "export HOSTNAME=myhost-experimentId";
|
||||
disabledTests = [
|
||||
"test_add_metrics_pushes_metrics" # requires a working prometheus push gateway
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "gradient_utils" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Gradient ML SDK";
|
||||
homepage = "https://github.com/Paperspace/gradient-utils";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
description = "Python utils and helpers library for Gradient";
|
||||
homepage = "https://github.com/Paperspace/gradient-utils";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,8 +19,9 @@ buildPythonPackage rec {
|
||||
--replace 'attrs<=' 'attrs>=' \
|
||||
--replace 'colorama==' 'colorama>=' \
|
||||
--replace 'PyYAML==' 'PyYAML>=' \
|
||||
--replace 'marshmallow<' 'marshmallow>='
|
||||
'';
|
||||
--replace 'marshmallow<' 'marshmallow>=' \
|
||||
--replace 'websocket-client==' 'websocket-client>='
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ attrs boto3 requests gradient_statsd terminaltables
|
||||
click-completion click-didyoumean click-help-colors requests_toolbelt
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "h3";
|
||||
version = "3.7.1";
|
||||
version = "3.7.2";
|
||||
|
||||
# pypi version does not include tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "uber";
|
||||
repo = "h3-py";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-MIVV3kZGsIsaJ/ccJOK3+j1VwkUsZGHS5d1sGOBa1Ec=";
|
||||
sha256 = "00yi5ncfhi2wpakwm9visi1jlnnaaha66y90fjcsfyvi4hkm8xv2";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpx";
|
||||
version = "0.17.0";
|
||||
version = "0.17.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-pRdhPAxKZOVbRhOm4881Dn+IRtpX5T3oFuYdtWp3cgY=";
|
||||
sha256 = "sha256-P4Uki+vlAgVECBUz9UGvv1ip49jmf0kYbyU2/mkWE3U=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
39
pkgs/development/python-modules/huggingface-hub/default.nix
Normal file
39
pkgs/development/python-modules/huggingface-hub/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, filelock
|
||||
, importlib-metadata
|
||||
, requests
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "huggingface-hub";
|
||||
version = "0.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "huggingface";
|
||||
repo = "huggingface_hub";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0DSgWmodeRmvGq2v3n86BzRx5Xdb8fIQh+G/2O2d+yo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
filelock
|
||||
requests
|
||||
tqdm
|
||||
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||
|
||||
# Tests require network access.
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "huggingface_hub" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/huggingface/huggingface_hub";
|
||||
description = "Download and publish models and other files on the huggingface.co hub";
|
||||
changelog = "https://github.com/huggingface/huggingface_hub/releases/tag/${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ danieldk ];
|
||||
};
|
||||
}
|
||||
@@ -7,28 +7,20 @@
|
||||
, libusb1
|
||||
, mnemonic
|
||||
, pyaes
|
||||
, pythonAtLeast
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hwi";
|
||||
version = "1.2.1";
|
||||
disabled = pythonAtLeast "3.9";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bitcoin-core";
|
||||
repo = "HWI";
|
||||
rev = version;
|
||||
sha256 = "0fs3152lw7y5l9ssr5as8gd739m9lb7wxpv1vc5m77k5nw7l8ax5";
|
||||
sha256 = "0m8maxhjpfxnkry2l0x8143m1gmds8mbwyd9flnkfipxz0r0xwbr";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'ecdsa>=0.13.0,<0.14.0'" "'ecdsa'" \
|
||||
--replace "'hidapi>=0.7.99,<0.8.0'" "'hidapi'" \
|
||||
--replace "'mnemonic>=0.18.0,<0.19.0'" "'mnemonic'"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bitbox02
|
||||
ecdsa
|
||||
@@ -36,6 +28,7 @@ buildPythonPackage rec {
|
||||
libusb1
|
||||
mnemonic
|
||||
pyaes
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
# tests require to clone quite a few firmwares
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ijson";
|
||||
version = "3.1.3";
|
||||
version = "3.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d29977f7235b5bf83c372825c6abd8640ba0e3a8e031d3ffc3b63deaf6ae1487";
|
||||
sha256 = "1d1003ae3c6115ec9b587d29dd136860a81a23c7626b682e2b5b12c9fd30e4ea";
|
||||
};
|
||||
|
||||
doCheck = false; # something about yajl
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "inflect";
|
||||
version = "5.2.0";
|
||||
version = "5.3.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "30e9d9d372e693739beaae1345dc53c48871ca70c5c7060edd3e7e77802bf945";
|
||||
sha256 = "41a23f6788962e9775e40e2ecfb1d6455d02de315022afeedd3c5dc070019d73";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm toml ];
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "influxdb-client";
|
||||
version = "1.14.0";
|
||||
version = "1.15.0";
|
||||
|
||||
disabled = pythonOlder "3.6"; # requires python version >=3.6
|
||||
|
||||
@@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
owner = "influxdata";
|
||||
repo = "influxdb-client-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1qq727gwz5migr3xlqxj57qxv1y52g7xpkdgggz2wz739w5czffd";
|
||||
sha256 = "1b2xh78v965rgafyj7cdbjm2p96d74f7ifsqllc7242n9wv3k53q";
|
||||
};
|
||||
|
||||
# makes test not reproducible
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "msldap";
|
||||
version = "0.3.27";
|
||||
version = "0.3.28";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-tAMl1Xkb04Vfh18uS30eKX/IfeXhwER3J1lHXHxHlXY=";
|
||||
sha256 = "sha256-0sMi5PpwMWf/W+Hu0akQVF/1ZkbanfOzYDC3R6lZrSE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
|
||||
configure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = [ python pygobject2 pygtk pkgs.libnotify pkgs.glib pkgs.gtk2 pkgs.dbus-glib ];
|
||||
|
||||
postInstall = "cd $out/lib/python*/site-packages && ln -s gtk-*/pynotify .";
|
||||
|
||||
@@ -1,33 +1,39 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, requests
|
||||
, fetchPypi
|
||||
, packaging
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openwrt-luci-rpc";
|
||||
version = "1.1.7";
|
||||
version = "1.1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8074c1ed24cdd1fadc5a99bd63d9313a0a44703714473ed781ed11e7fb45c96f";
|
||||
sha256 = "sha256-bo9HLT0q0yiLJI7i5v/36G82FHbGCtnAI50iGniyKSU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "requests==2.21.0" "requests"
|
||||
substituteInPlace setup.py --replace "packaging==19.1" "packaging"
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
requests
|
||||
packaging
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ click requests packaging ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = ''
|
||||
Python3 module for interacting with the OpenWrt Luci RPC interface.
|
||||
Supports 15.X & 17.X & 18.X or newer releases of OpenWrt.
|
||||
pythonImportsCheck = [ "openwrt_luci_rpc" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for interacting with the OpenWrt Luci RPC interface";
|
||||
longDescription = ''
|
||||
This module allows you to use the Luci RPC interface to fetch connected devices
|
||||
on your OpenWrt based router. Supports 15.X & 17.X & 18.X or newer releases of
|
||||
OpenWrt.
|
||||
'';
|
||||
homepage = "https://github.com/fbradyirl/openwrt-luci-rpc";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -26,6 +26,9 @@ buildPythonPackage rec {
|
||||
# pillow-simd
|
||||
"test_roundtrip"
|
||||
"test_basic"
|
||||
] ++ lib.optionals (lib.versions.major version == "6") [
|
||||
# RuntimeError: Error setting from dictionary
|
||||
"test_custom_metadata"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ olefile ];
|
||||
|
||||
@@ -1,55 +1,58 @@
|
||||
{ lib, buildPythonPackage
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, aiohttp
|
||||
, aiozeroconf
|
||||
, asynctest
|
||||
, cryptography
|
||||
, deepdiff
|
||||
, fetchFromGitHub
|
||||
, netifaces
|
||||
, protobuf
|
||||
, pytest
|
||||
, pytest-aiohttp
|
||||
, pytest-asyncio
|
||||
, pytestrunner
|
||||
, pytest-runner
|
||||
, pytest-timeout
|
||||
, pytestCheckHook
|
||||
, srptools
|
||||
, zeroconf
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyatv";
|
||||
version = "0.7.6";
|
||||
version = "0.7.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "postlund";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1lahv6f97fizgh5b2w5yz9455l8ygn99rslhiygkgjywi2flx3p3";
|
||||
sha256 = "sha256-dPnh8XZN7ZVR2rYNnj7GSYXW5I2GNQwD/KRDTgs2AtI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner];
|
||||
nativeBuildInputs = [ pytest-runner];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiozeroconf
|
||||
srptools
|
||||
aiohttp
|
||||
protobuf
|
||||
aiozeroconf
|
||||
cryptography
|
||||
netifaces
|
||||
protobuf
|
||||
srptools
|
||||
zeroconf
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
deepdiff
|
||||
pytest
|
||||
pytest-aiohttp
|
||||
pytest-asyncio
|
||||
pytest-timeout
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
pythonImportsCheck = [ "pyatv" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python client library for the Apple TV";
|
||||
description = "Python client library for the Apple TV";
|
||||
homepage = "https://github.com/postlund/pyatv";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ elseym ];
|
||||
|
||||
@@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ nose pkgs.pkgconfig pkgs.swig ];
|
||||
nativeBuildInputs = [ nose pkgs.pkg-config pkgs.swig ];
|
||||
buildInputs = [ setuptools pkgs.libcdio ]
|
||||
++ lib.optional stdenv.isDarwin pkgs.libiconv;
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymazda";
|
||||
version = "0.0.9";
|
||||
version = "0.0.10";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15kygabjlxmy3g5kj48ixqdwaz8qrfzxj8ii27cidsp2fq8ph165";
|
||||
sha256 = "sha256-sJj4RkVaELNitcz1H8YitNgIx4f35WeQf7M5miYD5yI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp pycryptodome ];
|
||||
|
||||
@@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||
PATH="${pkgs.parted}/sbin:$PATH"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
checkInputs = [ six ];
|
||||
propagatedBuildInputs = [ pkgs.parted ];
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE="-I${pkgs.poppler.dev}/include/poppler/";
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = [ pkgs.poppler.dev ];
|
||||
propagatedBuildInputs = [ pycairo pygobject2 ];
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyshark";
|
||||
version = "0.4.2.11";
|
||||
version = "0.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KimiNewt";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "07dkhkf85cplcj1h3k8mmqzsn4zdkxzr0zg3gvf8yc8p5g5azx9q";
|
||||
sha256 = "sha256-cveiFkkSplfQPgUEVWyV40KKHCtKJZsfvdV8JmEUmE4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -29,6 +29,8 @@ buildPythonPackage rec {
|
||||
wireshark-cli
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyshark" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for tshark, allowing python packet parsing using wireshark dissectors";
|
||||
homepage = "https://github.com/KimiNewt/pyshark/";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, saneBackends
|
||||
, sane-backends
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
saneBackends
|
||||
sane-backends
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,23 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest
|
||||
, construct }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, construct
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "snapcast";
|
||||
version = "2.1.1";
|
||||
|
||||
version = "2.1.2";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c3ecd63d997fbcf6e5322dc47c1f02615f1d9611cba01ec18e9c9f8c14ed824b";
|
||||
sha256 = "sha256-ILBleqxEO7wTxAw/fvDW+4O4H4XWV5m5WWtaNeRBr4g=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [ construct ];
|
||||
|
||||
# no checks from Pypi - https://github.com/happyleavesaoc/python-snapcast/issues/23
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "snapcast" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control Snapcast, a multi-room synchronous audio solution";
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqlite-utils";
|
||||
version = "3.5";
|
||||
version = "3.6";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-i9SnT+DcQOcujV25bD/SNV1uRA2IgfiSWhEWlQC5TiA=";
|
||||
sha256 = "sha256-WCqbz0tssy7i76Sg2PeexjDollypPGnOqqfUJOHAFWA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,19 +1,46 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yapf";
|
||||
version = "0.30.0";
|
||||
version = "0.31.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3000abee4c28daebad55da6c85f3cd07b8062ce48e2e9943c8da1b9667d48427";
|
||||
hash = "sha256-QI+5orJUwwL0nbg8WfmqC0sP0OwlvjpcURgTJ5Iv9j0=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A formatter for Python code.";
|
||||
homepage = "https://github.com/google/yapf";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ siddharthist ];
|
||||
};
|
||||
homepage = "https://github.com/google/yapf";
|
||||
description = "Yet Another Python Formatter";
|
||||
longDescription = ''
|
||||
Most of the current formatters for Python --- e.g., autopep8, and pep8ify
|
||||
--- are made to remove lint errors from code. This has some obvious
|
||||
limitations. For instance, code that conforms to the PEP 8 guidelines may
|
||||
not be reformatted. But it doesn't mean that the code looks good.
|
||||
|
||||
YAPF takes a different approach. It's based off of 'clang-format',
|
||||
developed by Daniel Jasper. In essence, the algorithm takes the code and
|
||||
reformats it to the best formatting that conforms to the style guide, even
|
||||
if the original code didn't violate the style guide. The idea is also
|
||||
similar to the 'gofmt' tool for the Go programming language: end all holy
|
||||
wars about formatting - if the whole codebase of a project is simply piped
|
||||
through YAPF whenever modifications are made, the style remains consistent
|
||||
throughout the project and there's no point arguing about style in every
|
||||
code review.
|
||||
|
||||
The ultimate goal is that the code YAPF produces is as good as the code
|
||||
that a programmer would write if they were following the style guide. It
|
||||
takes away some of the drudgery of maintaining your code.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ AndersonTorres siddharthist ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user