Merge master into staging-next
This commit is contained in:
@@ -167,6 +167,9 @@ buildPythonPackage rec {
|
||||
--replace "/bin/bash" "${stdenv.shell}"
|
||||
'';
|
||||
|
||||
# allow for gunicorn processes to have access to python packages
|
||||
makeWrapperArgs = [ "--prefix PYTHONPATH : $PYTHONPATH" ];
|
||||
|
||||
checkPhase = ''
|
||||
export HOME=$(mktemp -d)
|
||||
export AIRFLOW_HOME=$HOME
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asdf";
|
||||
version = "2.5.2";
|
||||
version = "2.6.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ai5l62ldaq1cqfmq3hvnzp8gp0hjjmjnck9d3cnx5r8la5ig18y";
|
||||
sha256 = "1ym9mmxjpnnlinly1rxfqj9rlyl2fv7dxc81f30n1b8n9pwc6jb5";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.4.0";
|
||||
version = "1.5.0";
|
||||
pname = "azure-core";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0vfcfpb01qsrqh9xg4xyfm153bczwjglkv59zpdvrn7x0rrdc1cc";
|
||||
sha256 = "181iyigm11y56lf1kwv7pcdyppavpwjb1b6k3qp3jnbqaypad9mg";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bidict";
|
||||
version = "0.18.3";
|
||||
version = "0.19.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1742a25a9ef1b1ac4000683406879a3e1a6577faa02f31e482e6c84e2e3bf628";
|
||||
sha256 = "11wiis62kcw6g3n4gdj39fx1yrlq5vz3zx3kmb6g79mliyhn2x7g";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dict2xml";
|
||||
version = "1.6.1";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "17wsybqq0916i1yh7bpf2cmicldn7d0y2b9mzlgs503fkcpxda5w";
|
||||
sha256 = "0bfn8n8sb3slwx7ra8m8fbfy65k20h2qxcqfq99hwqrrkgcffihl";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
@@ -36,7 +36,7 @@ let
|
||||
bazelTarget = ":install";
|
||||
|
||||
fetchAttrs = {
|
||||
sha256 = "0wb2gh9ji8bgq4s9ci9x017dybxqzjhncpw33b1wjksm2yhbkvlz";
|
||||
sha256 = "0jlgmwcanfkhkwvh4vxibpi0zyyl6xkjzcz2xqn7raympqscq81a";
|
||||
};
|
||||
|
||||
bazelFlags = [
|
||||
|
||||
@@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
inherit pname version format;
|
||||
python = "py3";
|
||||
platform = "manylinux1_x86_64";
|
||||
sha256 = "68182f4b704db401b2012c10ed8a19561f8d487063632f8731c2e58960ca9242";
|
||||
sha256 = "0dxp9a73ncjylc09bjwq81fgj5ysk1yi27l8ka5f98121k1kmn6q";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
@@ -35,14 +35,18 @@ buildPythonPackage rec {
|
||||
)
|
||||
];
|
||||
|
||||
# prevent exposing a broken dotnet executable
|
||||
postInstall = ''
|
||||
rm -r $out/${python.sitePackages}/${pname}/bin
|
||||
# remove bin, which has a broken dotnetcore installation
|
||||
installPhase = ''
|
||||
rm -rf dotnetcore2/bin
|
||||
mkdir -p $out/${python.sitePackages}/
|
||||
cp -r dotnetcore2 $out/${python.sitePackages}/
|
||||
'';
|
||||
|
||||
# no tests, ensure it's one useful function works
|
||||
checkPhase = ''
|
||||
${python.interpreter} -c 'from dotnetcore2 import runtime; print(runtime.get_runtime_path())'
|
||||
rm -r dotnetcore2 # avoid importing local directory
|
||||
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||||
${python.interpreter} -c 'from dotnetcore2 import runtime; print(runtime.get_runtime_path()); runtime.ensure_dependencies()'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage (rec {
|
||||
pname = "elasticsearch";
|
||||
version = "7.1.0";
|
||||
version = "7.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0140787216646e1eb7eb001f8146aff7071d7ca438854249787b6cc221ddd266";
|
||||
sha256 = "1j499w9hbpyx0v83xnn1vrm45amx5lbnhlik65v5z1n0gb9v4a6j";
|
||||
};
|
||||
|
||||
# Check is disabled because running them destroy the content of the local cluster!
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-HTTPAuth";
|
||||
version = "3.3.0";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1fb1kr1iw6inkwfv160rpjx54vv1q9b90psdyyghyy1f6dhvgy3f";
|
||||
sha256 = "1z3ad8sm24xl2lazdia92br1a2nigqwaf1lfsa77j5pz6gf2xmj7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask ];
|
||||
|
||||
23
pkgs/development/python-modules/flask-versioned/default.nix
Normal file
23
pkgs/development/python-modules/flask-versioned/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, flask }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Versioned";
|
||||
version = "0.9.4-20101221";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pilt";
|
||||
repo = "flask-versioned";
|
||||
rev = "38046fb53a09060de437c90a5f7370a6b94ffc31"; # no tags
|
||||
sha256 = "1wim9hvx7lxzfg35c0nc7p34j4vw9mzisgijlz4ibgykah4g1y37";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Flask plugin to rewrite file paths to add version info";
|
||||
homepage = "https://github.com/pilt/flask-versioned";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ globin ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "foolscap";
|
||||
version = "0.13.2";
|
||||
version = "20.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8498c7e9eaecb5b19be74b18d55c2086440be08de29f2bb507f9b505757467ff";
|
||||
sha256 = "0rbw9makjmawkcxnkkngybj3n14s0dnzn9gkqqq2krcm514kmlb9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mock twisted pyopenssl service-identity ];
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "h2";
|
||||
version = "3.1.1";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1d1svhixk3hr78ph3nx8wi7sagx1xrvm712mmk028i2rhb92p8xq";
|
||||
sha256 = "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ enum34 hpack hyperframe ];
|
||||
|
||||
25
pkgs/development/python-modules/huey/default.nix
Normal file
25
pkgs/development/python-modules/huey/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, redis }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "huey";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coleifer";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1hgic7qrmb1kxvfgf2qqiw39nqyknf17pjvli8jfzvd9mv7cb7hh";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ redis ];
|
||||
|
||||
# connects to redis
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A little task queue for python";
|
||||
homepage = "https://github.com/coleifer/huey";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.globin ];
|
||||
};
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
, numpy
|
||||
, pandas
|
||||
, panel
|
||||
, pyarrow
|
||||
, python-snappy
|
||||
, requests
|
||||
, ruamel_yaml
|
||||
@@ -28,10 +29,10 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bcb6558a9a7ccb1a3c5b7d1e3777ac8faed80894ef7826df119642430070ef7a";
|
||||
sha256 = "0ypgf0046hln27gjcy7gjh4diblgmivkf7kxbcy1mjvwka55bdmw";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pyarrow pytest ];
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
dask
|
||||
|
||||
@@ -42,6 +42,9 @@ buildPythonPackage rec {
|
||||
"test_subprocess_print"
|
||||
"test_subprocess_error"
|
||||
"test_ipython_start_kernel_no_userns"
|
||||
|
||||
# https://github.com/ipython/ipykernel/issues/506
|
||||
"test_unc_paths"
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
# flaky test https://github.com/ipython/ipykernel/issues/485
|
||||
"test_shutdown"
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "itypes";
|
||||
version = "1.1.0";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = "tomchristie";
|
||||
rev = version;
|
||||
sha256 = "0zkhn16wpslkxkq77dqw5rxa28nrchcb6nd3vgnxv91p4skyfm62";
|
||||
sha256 = "1ljhjp9pacbrv2phs58vppz1dlxix01p98kfhyclvbml6dgjcr52";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "m3u8";
|
||||
version = "0.5.4";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "globocom";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1a2c7vqcysxkaffk40zg8d60l9hpjk0dw221fy9cg72i8jxq1gmm";
|
||||
sha256 = "0cmg993icpsa1b19kljxvjwhs167bsqrs0ad4wnwsi8qq6na5d4p";
|
||||
};
|
||||
|
||||
checkInputs = [ bottle pytest pytestcov ];
|
||||
|
||||
@@ -2,20 +2,24 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mail-parser";
|
||||
version = "3.9.3";
|
||||
version = "3.12.0";
|
||||
|
||||
# no tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "SpamScope";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0v6hgsz6yvp6csgx4y440ksqj24rdsd06vyfqcihiy3dfvp9229y";
|
||||
sha256 = "0p851jlly6bzcs70kd1lcjwmg4scwh1icymfc0f2y6rkh4kfsdhk";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.utf-8";
|
||||
|
||||
# remove version bounds
|
||||
prePatch = ''
|
||||
sed -i -e 's/==.*//g' requirements.txt
|
||||
''
|
||||
# ipaddress is part of the standard library of Python 3.3+
|
||||
prePatch = lib.optionalString (!pythonOlder "3.3") ''
|
||||
+ lib.optionalString (!pythonOlder "3.3") ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "ipaddress" ""
|
||||
'';
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "msal";
|
||||
version = "1.1.0";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16l2bmmm5pdlb61av5748mhy0lg9r965lmyn69is6mhsyr9zi38s";
|
||||
sha256 = "0pqprfgcsns89gmlm284zcvqnlsn3a5c46n1p33kdk53gyyym66y";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "af26f6f839b954bf072b3e47f6d954517d6b6d6956d26097331b571545d1747c";
|
||||
sha256 = "0z3ls52iamqv6fbn1ljnd5nnnzaiakczciry5c3vym5r77wgc9mg";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -6,7 +6,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "192556df794b9ef0c1333fd5f034e4a3905d63f52345a0cc1e359045670e34b6";
|
||||
sha256 = "1dil1rklb41m3v6a0i93ymimv453whsg1m9z6g0z17jbg7gmc98r";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestrunner ];
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "parse";
|
||||
version = "1.12.1";
|
||||
version = "1.15.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a5fca7000c6588d77bc65c28f3f21bfce03b5e44daa8f9f07c17fe364990d717";
|
||||
sha256 = "1h4m5df5grjpaf087g8ciishz5ajl28s3140s8bngppvy71f5m56";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -6,7 +6,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f65c74a7ecfd4d6af3feb963a1bf8a612e5882731f69afd06ae66ffee13238cb";
|
||||
sha256 = "1jrq6bhzwvz6db8ays8zff15hbk1iazs2qxrzvrnlkgxxjkp8p7n";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "phonenumbers";
|
||||
version = "8.12.3";
|
||||
version = "8.12.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a5e6615a36b3366bc1193feeb4e461b49d2b26b29ea43ca4f7dcc53f0182bbd1";
|
||||
sha256 = "000vhxjlgvs0w3vywlgx1kq8wj0wk07ybnsdn1qwbamd06msvbb1";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "26a2ebb95055fc5d66fe3d451e6005abbd4d6c05ef113086983a9b8fe7ecc60f";
|
||||
sha256 = "03y6xkkqz6rsk23304gg0mn4vgdb0mh1wi9xzrk5vz2ma2wyp8i6";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
51
pkgs/development/python-modules/privacyidea/default.nix
Normal file
51
pkgs/development/python-modules/privacyidea/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, cacert, openssl, python
|
||||
|
||||
, cryptography, pyrad, pymysql, python-dateutil, flask-versioned, flask_script
|
||||
, defusedxml, croniter, flask_migrate, pyjwt, configobj, sqlsoup, pillow
|
||||
, python-gnupg, passlib, pyopenssl, beautifulsoup4, smpplib, flask-babel
|
||||
, ldap3, huey, pyyaml, qrcode, oauth2client, requests, lxml, cbor2, psycopg2
|
||||
|
||||
, mock, pytest, responses, testfixtures
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "privacyIDEA";
|
||||
version = "3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "188ki924dig899wlih45xfsm0s7mjkya56vii26bg02h91izrb4b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography pyrad pymysql python-dateutil flask-versioned flask_script
|
||||
defusedxml croniter flask_migrate pyjwt configobj sqlsoup pillow
|
||||
python-gnupg passlib pyopenssl beautifulsoup4 smpplib flask-babel
|
||||
ldap3 huey pyyaml qrcode oauth2client requests lxml cbor2 psycopg2
|
||||
];
|
||||
|
||||
checkInputs = [ openssl mock pytest responses testfixtures ];
|
||||
# issues with hardware token tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "privacyidea" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace privacyidea/lib/resolvers/LDAPIdResolver.py --replace \
|
||||
"/etc/privacyidea/ldap-ca.crt" \
|
||||
"${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/${python.sitePackages}/tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multi factor authentication system (2FA, MFA, OTP Server)";
|
||||
license = licenses.agpl3Plus;
|
||||
homepage = "http://www.privacyidea.org";
|
||||
maintainers = [ maintainers.globin ];
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/privacyidea/ldap-proxy.nix
Normal file
27
pkgs/development/python-modules/privacyidea/ldap-proxy.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, twisted, ldaptor, configobj }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "privacyidea-ldap-proxy";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "privacyidea";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1kc1n9wr1a66xd5zvl6dq78xnkqkn5574jpzashc99pvm62dr24j";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ twisted ldaptor configobj ];
|
||||
|
||||
# python 2 zope.interface test import path issues
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pi_ldapproxy" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "LDAP Proxy to intercept LDAP binds and authenticate against privacyIDEA";
|
||||
homepage = "https://github.com/privacyidea/privacyidea-ldap-proxy";
|
||||
license = licenses.agpl3;
|
||||
maintainers = [ maintainers.globin ];
|
||||
};
|
||||
}
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydantic";
|
||||
version = "1.4";
|
||||
version = "1.5.1";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "samuelcolvin";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1zmnwyvvrj6nb2r1wh63yb6dzqaxw8m4njzqycjdq9911c5gwg6z";
|
||||
sha256 = "0fwrx7p6d5vskg9ibganahiz9y9299idvdmzhjw62jy84gn1vrb4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydocstyle";
|
||||
version = "4.0.1";
|
||||
version = "5.0.2";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1sr8d2fsfpam4f14v4als6g2v6s3n9h138vxlwhd6slb3ll14y4l";
|
||||
sha256 = "03z8miyppm2xncrc9yjilwl7z5c5cpv51zha580v64p8sb2l0j7j";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ snowballstemmer ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygit2";
|
||||
version = "1.1.1";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "klXVB9XYe/It/VeZeniQgBAzH8IfmoPsoSGlP2V76zw=";
|
||||
sha256 = "11q3a0p4mvzdskla0c6ffcrddldfbh7dc4p5l6xrriwri88j356y";
|
||||
};
|
||||
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyhcl";
|
||||
version = "0.4.2";
|
||||
version = "0.4.4";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "virtuald";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "01y5fn3pis43i0w0858wmrc8azfinp07a16ixglmg28gg07c0zkd";
|
||||
sha256 = "0rcpx4vvj2c6wxp31vay7a2xa5p62kabi91vps9plj6710yz29nc";
|
||||
};
|
||||
|
||||
# https://github.com/virtuald/pyhcl/blob/51a7524b68fe21e175e157b8af931016d7a357ad/setup.py#L64
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylatexenc";
|
||||
version = "2.2";
|
||||
version = "2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "phfaist";
|
||||
repo = "pylatexenc";
|
||||
rev = "v${version}";
|
||||
sha256 = "0icwd7iipz3sv4jdh9iam7h4xslvdqg16rwsmczrna3mmjbwccdk";
|
||||
sha256 = "0i4frypbv90mjir8bkp03cwkvwhgvc9p3fw6q2jz1dn7fw94v2rv";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "pylatexenc" ];
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylint-django";
|
||||
version = "2.0.14";
|
||||
version = "2.0.15";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "07fkwb4phfr71dpajnq6l64phjxvljx2nf8ibs12n9gwjdvm9i52";
|
||||
sha256 = "0wpzd3j01njxfclbhxz31s5clc7il67nhm4lz89q2aaj19c0xzsa";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymediainfo";
|
||||
version = "4.1";
|
||||
version = "4.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd";
|
||||
sha256 = "0vg2icmsc44k1ra898rjfp912xijsn96s0zplax6w13lpzb9jb9r";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
27
pkgs/development/python-modules/pyrad/default.nix
Normal file
27
pkgs/development/python-modules/pyrad/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, lib, netaddr, six, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyrad";
|
||||
version = "2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyradius";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0hy7999av47s8100afbhxfjb8phbmrqcv530xlvskndby4a8w94k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ netaddr six ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests -e testBind
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python RADIUS Implementation";
|
||||
homepage = "https://bitbucket.org/zzzeek/sqlsoup";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.globin ];
|
||||
};
|
||||
}
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "tar.bz2";
|
||||
sha256 = "5ea23fdac4cd6e5d5c814a9fff84edbc3701270e6f40fcffa18a4554862b6791";
|
||||
sha256 = "14b75f358ical7zzqh3g1qkh2dxwxn2gz7sah5f5svndqkd3z8jy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysolr";
|
||||
version = "3.8.1";
|
||||
version = "3.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "88ecb176627db6bcf9aeb94a3570bfa0363cb68be4b2a6d89a957d4a87c0a81b";
|
||||
sha256 = "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, cvxpy
|
||||
, cython
|
||||
@@ -18,7 +19,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qiskit-aer";
|
||||
version = "0.5.0";
|
||||
version = "0.5.1";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -27,7 +28,7 @@ buildPythonPackage rec {
|
||||
repo = "qiskit-aer";
|
||||
rev = version;
|
||||
fetchSubmodules = true; # fetch muparserx and other required libraries
|
||||
sha256 = "05lsirrdnnr5yqhwkgv08d9aib8xq4xpd6aq2pfqsi9qkii2fff1";
|
||||
sha256 = "0pbi8ldz8f1zm7pf2n5229g6kccriq21f24q9cb7bd4j5gdky5sk";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -47,7 +48,15 @@ buildPythonPackage rec {
|
||||
pybind11
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
patches = [
|
||||
(fetchpatch{
|
||||
name = "qiskit-aer-pr-727-fix-random-unitary-test.patch";
|
||||
url = "https://github.com/Qiskit/qiskit-aer/commit/09afb3b6b0710042ab65d88e863363f2c843dcb0.patch";
|
||||
sha256 = "0521b7i4fpc5brqs08w381g3c655f9cbn6my1740jnk7dv5lhsv9";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# remove dependency on PyPi cmake package, which isn't in Nixpkgs
|
||||
substituteInPlace setup.py --replace "'cmake!=3.17,!=3.17.0'" ""
|
||||
'';
|
||||
@@ -81,7 +90,7 @@ buildPythonPackage rec {
|
||||
# Tests include a compiled "circuit" which is auto-built in $HOME
|
||||
export HOME=$(mktemp -d)
|
||||
# move tests b/c by default try to find (missing) cython-ized code in /build/source dir
|
||||
cp -r test $HOME
|
||||
cp -r $TMP/$sourceRoot/test $HOME
|
||||
|
||||
# Add qiskit-aer compiled files to cython include search
|
||||
pushd $HOME
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
# , cplex
|
||||
, cvxopt
|
||||
, dlx
|
||||
, docplex
|
||||
@@ -10,19 +11,20 @@
|
||||
, networkx
|
||||
, numpy
|
||||
, psutil
|
||||
, python
|
||||
, qiskit-ignis
|
||||
, qiskit-terra
|
||||
, quandl
|
||||
, scikitlearn
|
||||
# Check Inputs
|
||||
, parameterized
|
||||
, ddt
|
||||
, pytestCheckHook
|
||||
, qiskit-aer
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qiskit-aqua";
|
||||
version = "0.6.6";
|
||||
version = "0.7.0";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -31,11 +33,12 @@ buildPythonPackage rec {
|
||||
owner = "Qiskit";
|
||||
repo = "qiskit-aqua";
|
||||
rev = version;
|
||||
sha256 = "080m5nsy3ia6bcdypq5d3ijb7762yl1l9llygmxsi6si449zl2cp";
|
||||
sha256 = "0yykw6k1rb3f2ihcp0y9pb0695mcmy29nyqlj89qs4da0503vxvh";
|
||||
};
|
||||
|
||||
# Optional packages: pyscf (see below NOTE) & pytorch. Can install via pip/nix if needed.
|
||||
propagatedBuildInputs = [
|
||||
# cplex
|
||||
cvxopt
|
||||
docplex
|
||||
dlx # Python Dancing Links package
|
||||
@@ -57,19 +60,33 @@ buildPythonPackage rec {
|
||||
# It can also be installed at runtime from the pip wheel.
|
||||
# We disable appropriate tests below to allow building without pyscf installed
|
||||
|
||||
# NOTE: we remove cplex b/c we can't build pythonPackages.cplex.
|
||||
# cplex is only distributed in manylinux1 wheel (no source), and Nix python is not manylinux1 compatible
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyscf; sys_platform == 'linux' or (python_version < '3.8' and sys_platform != 'win32')" ""
|
||||
--replace "pyscf; sys_platform != 'win32'" "" \
|
||||
--replace "cplex; python_version >= '3.6' and python_version < '3.8'" ""
|
||||
|
||||
# Add ImportWarning when running qiskit.chemistry (pyscf is a chemistry package) that pyscf is not included
|
||||
echo -e "\nimport warnings\ntry: import pyscf;\nexcept:\n " \
|
||||
echo -e "\nimport warnings\ntry: import pyscf;\nexcept ImportError:\n " \
|
||||
"warnings.warn('pyscf is not supported on Nixpkgs so some qiskit features will fail." \
|
||||
"You must install it yourself via pip or add it to your environment from the Nix User Repository." \
|
||||
"See https://github.com/NixOS/nixpkgs/pull/83447 for details', ImportWarning)\n" \
|
||||
>> qiskit/chemistry/__init__.py
|
||||
|
||||
# Add ImportWarning when running qiskit.optimization that cplex (optimization package) is not included
|
||||
echo -e "\nimport warnings\ntry: import cplex;\nexcept ImportError:\n " \
|
||||
"warnings.warn('cplex is not supported on Nixpkgs so some qiskit features will fail." \
|
||||
"You must install it yourself via pip or add it to your environment from the Nix User Repository." \
|
||||
"', ImportWarning)\n" \
|
||||
>> qiskit/optimization/__init__.py
|
||||
|
||||
'';
|
||||
|
||||
checkInputs = [ parameterized qiskit-aer pytestCheckHook ];
|
||||
postInstall = "rm -rf $out/${python.sitePackages}/docs"; # Remove docs dir b/c it can cause conflicts.
|
||||
|
||||
checkInputs = [ ddt qiskit-aer pytestCheckHook ];
|
||||
dontUseSetuptoolsCheck = true;
|
||||
pythonImportsCheck = [
|
||||
"qiskit.aqua"
|
||||
@@ -84,42 +101,35 @@ buildPythonPackage rec {
|
||||
"--ignore=test/chemistry/test_qeom_ee.py"
|
||||
"--ignore=test/chemistry/test_qeom_vqe.py"
|
||||
"--ignore=test/chemistry/test_vqe_uccsd_adapt.py"
|
||||
|
||||
# Following tend to be slow tests, all pass
|
||||
"--ignore=test/aqua/test_vqc.py"
|
||||
"--ignore=test/aqua/test_hhl.py"
|
||||
"--ignore=test/aqua/test_qgan.py"
|
||||
"--ignore=test/aqua/test_mcr.py"
|
||||
"--ignore=test/aqua/test_mcu1.py"
|
||||
"--ignore=test/aqua/test_vqe.py"
|
||||
];
|
||||
disabledTests = [
|
||||
# Disabled due to missing pyscf
|
||||
"test_validate" # test/chemistry/test_inputparser.py
|
||||
|
||||
# Disabling slow tests > 10 seconds
|
||||
"test_clique_vqe"
|
||||
"test_delta_3_qasm"
|
||||
"test_evaluate_qasm_mode"
|
||||
"test_evolve_1_suzuki"
|
||||
"test_exact_cover_vqe"
|
||||
"test_exchangedata"
|
||||
"test_expected_value_0_statevector"
|
||||
"test_expected_value_1_qasm"
|
||||
"test_expected_value_2_statevector"
|
||||
"TestVQE"
|
||||
"TestVQC"
|
||||
"TestQSVM"
|
||||
"test_graph_partition_vqe"
|
||||
"test_lookup_rotation"
|
||||
"test_mct_with_dirty_ancillae_15"
|
||||
"test_mcrz_11"
|
||||
"TestLookupRotation"
|
||||
"_vqe"
|
||||
"TestHHL"
|
||||
"TestQGAN"
|
||||
"test_evaluate_qasm_mode"
|
||||
"test_measurement_error_mitigation_auto_refresh"
|
||||
"test_qgan_training"
|
||||
"test_qsvm_multiclass"
|
||||
"test_shor_factoring_0"
|
||||
"test_vertex_cover_vqe"
|
||||
"test_vqc_with_raw_feature_vector_on_wine"
|
||||
"test_vqe_2_iqpe"
|
||||
"test_vqe_qasm"
|
||||
"test_exchangedata"
|
||||
"test_wikipedia"
|
||||
"test_shor_factoring_1__15___qasm_simulator____3__5__"
|
||||
"test_readme_sample"
|
||||
"test_ecev"
|
||||
"test_expected_value"
|
||||
"test_qubo_gas_int_paper_example"
|
||||
"test_shor_no_factors_1_5"
|
||||
"test_shor_no_factors_2_7"
|
||||
"test_evolve_2___suzuki___1__3_"
|
||||
"test_delta_4"
|
||||
"test_swaprz"
|
||||
"test_deprecated_algo_result"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qiskit-ibmq-provider";
|
||||
version = "0.6.1";
|
||||
version = "0.7.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
owner = "Qiskit";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16c73m9gp1wcrygr6mnc0a9ps0i872bgc7v1zbqyh50kxbcrnpnz";
|
||||
sha256 = "1n13jjx1cx5gswwk8rpxfjqyk97cwx1n2hwsabkcbi7fksw3c5jk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, python
|
||||
, numpy
|
||||
, qiskit-terra
|
||||
, scikitlearn
|
||||
@@ -38,11 +39,12 @@ buildPythonPackage rec {
|
||||
scikitlearn
|
||||
scipy
|
||||
];
|
||||
postInstall = "rm -rf $out/${python.sitePackages}/docs"; # this dir can create conflicts
|
||||
|
||||
# Tests
|
||||
pythonImportsCheck = [ "qiskit.ignis" ];
|
||||
dontUseSetuptoolsCheck = true;
|
||||
preCheck = ''export HOME=$TMPDIR'';
|
||||
preCheck = "export HOME=$TMPDIR";
|
||||
checkInputs = [
|
||||
ddt
|
||||
pytestCheckHook
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qiskit-terra";
|
||||
version = "0.13.0";
|
||||
version = "0.14.1";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||
owner = "Qiskit";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "03fgqmyahgmkf5dbw19n9c1v8p4kmpk50wxhhc8435cclvs26x9j";
|
||||
sha256 = "0pd7x2jrqy7q1s38ychqw9bayjn2rvi6rq7c2c0kd160rwj1l2sc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
@@ -94,10 +94,6 @@ buildPythonPackage rec {
|
||||
"qiskit.transpiler.passes.routing.cython.stochastic_swap.swap_trial"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_jupyter_jobs_pbars" # needs IBMQ provider package (qiskit-ibmq-provider), circular dependency
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--ignore=test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency
|
||||
];
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "qiskit";
|
||||
# NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history
|
||||
version = "0.18.2";
|
||||
version = "0.19.1";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "Qiskit";
|
||||
repo = "qiskit";
|
||||
rev = version;
|
||||
sha256 = "05pwpcps1ksqx6m6hwq90l8sbak64fsz76yv4q3jplfjf6597k6p";
|
||||
sha256 = "0p1sahgf6qgbkvxb067mnyj6ya8nv7y57yyiiaadhjw242sjkjy5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scikit-learn";
|
||||
version = "0.21.3";
|
||||
version = "0.22.2.post1";
|
||||
# UnboundLocalError: local variable 'message' referenced before assignment
|
||||
disabled = stdenv.isi686; # https://github.com/scikit-learn/scikit-learn/issues/5534
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "eb9b8ebf59eddd8b96366428238ab27d05a19e89c5516ce294abc35cea75d003";
|
||||
sha256 = "0z81n13dxvd6qwq5lsnzw2machmxbirhdhr73v90fi55ic9qslsp";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
@@ -41,15 +41,6 @@ buildPythonPackage rec {
|
||||
];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
patches = [
|
||||
# Fixes tests by changing threshold of a test-case that broke
|
||||
# with numpy versions >= 1.17. This should be removed for versions > 0.21.2.
|
||||
( fetchpatch {
|
||||
url = "https://github.com/scikit-learn/scikit-learn/commit/b730befc821caec5b984d9ff3aa7bc4bd7f4d9bb.patch";
|
||||
sha256 = "0z36m05mv6d494qwq0688rgwa7c4bbnm5s2rcjlrp29fwn3fy1bv";
|
||||
})
|
||||
];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
doCheck = !stdenv.isAarch64;
|
||||
@@ -61,6 +52,12 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A set of python modules for machine learning and data mining";
|
||||
changelog = let
|
||||
major = versions.major version;
|
||||
minor = versions.minor version;
|
||||
dashVer = replaceChars ["."] ["-"] version;
|
||||
in
|
||||
"https://scikit-learn.org/stable/whats_new/v${major}.${minor}.html#version-${dashVer}";
|
||||
homepage = "https://scikit-learn.org";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
|
||||
29
pkgs/development/python-modules/smpplib/default.nix
Normal file
29
pkgs/development/python-modules/smpplib/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, python, six, tox, mock, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smpplib";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0jzxlfwf0861ilh4xyd70hmkdbvdki52aalglm1bnpxkg6i3jhfz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkInputs = [ tox mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/${python.sitePackages}/tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "SMPP library for Python";
|
||||
homepage = "https://github.com/python-smpplib/python-smpplib";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = [ maintainers.globin ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/sqlsoup/default.nix
Normal file
21
pkgs/development/python-modules/sqlsoup/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, sqlalchemy, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqlsoup";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mj00fhxj75ac3i8xk9jmm7hvcjz9p4x2r3yndcwsgb659rvgbrg";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sqlalchemy ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A one step database access tool, built on the SQLAlchemy ORM";
|
||||
homepage = "https://bitbucket.org/zzzeek/sqlsoup";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.globin ];
|
||||
};
|
||||
}
|
||||
@@ -61,7 +61,7 @@ let
|
||||
bazelTarget = ":pip_pkg";
|
||||
|
||||
fetchAttrs = {
|
||||
sha256 = "0135nxxvkmjzpd80r1g9fdkk9h62g0xlvp32g5zgk0hkma5kq0bx";
|
||||
sha256 = "0nmk7sbgl1ag20333v9r7l5cka6wapbskikfhi3y5a8l9f6hxkl3";
|
||||
};
|
||||
|
||||
buildAttrs = {
|
||||
|
||||
@@ -300,9 +300,9 @@ let
|
||||
|
||||
# cudaSupport causes fetch of ncclArchive, resulting in different hashes
|
||||
sha256 = if cudaSupport then
|
||||
"1qygfcvvn9vysap9nk6xccxi9mgmzyxiywz6k456f811l1v70p2c"
|
||||
"09j57w6kc0vkfcdwr0qggy3qgrgq82kfa2jrwvvcnij4bl3wj40j"
|
||||
else
|
||||
"0kfjanw0mfbh30vi1ms2xlg8yp429cbyfriik6yxd5cla2pncg2j";
|
||||
"14g8z49qz7d8n1c2mcsfhr7yqpcy7mhmpm6hgmqvpgb8vm7yvwrc";
|
||||
};
|
||||
|
||||
buildAttrs = {
|
||||
|
||||
@@ -294,9 +294,9 @@ let
|
||||
|
||||
# cudaSupport causes fetch of ncclArchive, resulting in different hashes
|
||||
sha256 = if cudaSupport then
|
||||
"0hg3ysy644950a34j28hrb317cz8gcbb9n84d36wdailvnlshghb"
|
||||
"1kqk1gx5g63kb2zdj392x6mnpbrmgqghrdv597aipn7s23xzj8pd"
|
||||
else
|
||||
"1gy4pz9kn30wb9c4a9584fibb88c3h38y3dqa99yw1lbsbyyi28c";
|
||||
"1plpcm2ydpajsrxdvmmpfy7l0gfdir78hap72w4k7ddm6d3rm2fv";
|
||||
};
|
||||
|
||||
buildAttrs = {
|
||||
|
||||
24
pkgs/development/python-modules/unrpa/default.nix
Normal file
24
pkgs/development/python-modules/unrpa/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, uncompyle6, isPy27 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "unrpa";
|
||||
version = "2.3.0";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0yl4qdwp3in170ks98qnldqz3r2iyzil5g1775ccg98qkh95s724";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ uncompyle6 ];
|
||||
|
||||
pythonImportsCheck = [ "unrpa" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Lattyware/unrpa";
|
||||
description = "A program to extract files from the RPA archive format";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ leo60228 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user