mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge staging-next into staging
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "XlsxWriter";
|
||||
version = "1.0.9";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "98a94b32d4929d3e34595b4654b8e7f951182f540056b9cb734c88899912f729";
|
||||
sha256 = "15yhjbx1xwdbfkg0l1c1wgjayb55zgm8rywjymj655yaqiammm5r";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,19 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "amqplib";
|
||||
version = "0.6.1";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://github.com/barryp/py-amqplib/archive/0.6.1.tar.gz;
|
||||
sha256 = "04nsn68wz9m24rvbssirkyighazbn20j60wjmi0r7jcpcf00sb3s";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "tgz";
|
||||
sha256 = "843d69b681a60afd21fbf50f310404ec67fcdf9d13dfcf6e9d41f3b456217e5b";
|
||||
};
|
||||
|
||||
# error: invalid command 'test'
|
||||
# testing assumes network connection
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/client_0_8/run_all.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://code.google.com/p/py-amqplib/;
|
||||
homepage = https://github.com/barryp/py-amqplib;
|
||||
description = "Python client for the Advanced Message Queuing Procotol (AMQP)";
|
||||
license = licenses.lgpl21;
|
||||
};
|
||||
|
||||
33
pkgs/development/python-modules/atsim_potentials/default.nix
Normal file
33
pkgs/development/python-modules/atsim_potentials/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, future
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.2.1";
|
||||
pname = "atsim.potentials";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2abdec2fb4e8198f4e0e41634ad86625d5356a4a3f1ba1f41568d0697df8f36f";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ future ];
|
||||
|
||||
# tests are not included with release
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://bitbucket.org/mjdr/atsim_potentials;
|
||||
description = "Provides tools for working with pair and embedded atom method potential models including tabulation routines for DL_POLY and LAMMPS";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
32
pkgs/development/python-modules/azure-common/default.nix
Normal file
32
pkgs/development/python-modules/azure-common/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, azure-nspkg
|
||||
, isPyPy
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
pname = "azure-common";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "074rwwy8zzs7zw3nww5q2wg5lxgdc4rmypp2gfc9mwsz0gb70491";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ azure-nspkg ];
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, azure-common
|
||||
, azure-mgmt-nspkg
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.0";
|
||||
pname = "azure-mgmt-common";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1rmzpz3733wv31rsnqpdy4bbafvk5dhbqx7q0xf62dlz7p0i4f66";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ azure-common azure-mgmt-nspkg requests ];
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, azure-mgmt-common
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.0";
|
||||
pname = "azure-mgmt-compute";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "12hr5vxdg2sk2fzr608a37f4i8nbchca7dgdmly2w5fc7x88jx2v";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
# Patch to make this package work on requests >= 2.11.x
|
||||
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
|
||||
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/compute/computemanagement.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ azure-mgmt-common ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, azure-mgmt-common
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.1";
|
||||
pname = "azure-mgmt-network";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "10vj22h6nxpw0qpvib5x2g6qs5j8z31142icvh4qk8k40fcrs9hx";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
# Patch to make this package work on requests >= 2.11.x
|
||||
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
|
||||
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/network/networkresourceprovider.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ azure-mgmt-common ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/azure-mgmt-nspkg/default.nix
Normal file
25
pkgs/development/python-modules/azure-mgmt-nspkg/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, azure-nspkg
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
pname = "azure-mgmt-nspkg";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1rq92fj3kvnqkk18596dybw0kvhgscvc6cd8hp1dhy3wrkqnhwmq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ azure-nspkg ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, azure-mgmt-common
|
||||
}:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.1";
|
||||
pname = "azure-mgmt-resource";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0slh9qfm5nfacrdm3lid0sr8kwqzgxvrwf27laf9v38kylkfqvml";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
# Patch to make this package work on requests >= 2.11.x
|
||||
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
|
||||
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/resource/resourcemanagement.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ azure-mgmt-common ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, azure-mgmt-common
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.0";
|
||||
pname = "azure-mgmt-storage";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "16iw7hqhq97vlzfwixarfnirc60l5mz951p57brpcwyylphl3yim";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
# Patch to make this package work on requests >= 2.11.x
|
||||
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
|
||||
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/storage/storagemanagement.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ azure-mgmt-common ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/azure-nspkg/default.nix
Normal file
22
pkgs/development/python-modules/azure-nspkg/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
pname = "azure-nspkg";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "293f286c15ea123761f30f5b1cb5adebe5f1e5009efade923c6dd1e017621bf7";
|
||||
};
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, azure-common
|
||||
, requests
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.1";
|
||||
pname = "azure-servicemanagement-legacy";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "17dwrp99sx5x9cm4vldkaxhki9gbd6dlafa0lpr2n92xhh2838zs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ azure-common requests ];
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
35
pkgs/development/python-modules/azure-storage/default.nix
Normal file
35
pkgs/development/python-modules/azure-storage/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, azure-common
|
||||
, futures
|
||||
, dateutil
|
||||
, requests
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.20.3";
|
||||
pname = "azure-storage";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "06bmw6k2000kln5jwk5r9bgcalqbyvqirmdh9gq4s6nb4fv3c0jb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ azure-common dateutil requests ]
|
||||
++ pkgs.lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
39
pkgs/development/python-modules/azure/default.nix
Normal file
39
pkgs/development/python-modules/azure/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dateutil
|
||||
, futures
|
||||
, pyopenssl
|
||||
, requests
|
||||
, pythonOlder
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.11.0";
|
||||
pname = "azure";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "89c20b2efaaed3c6f56345d55c32a8d4e7d2a16c032d0acb92f8f490c508fe24";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil pyopenssl requests ]
|
||||
++ pkgs.lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
# depends on futures for python 3 (not necissary)
|
||||
patchPhase = if (!isPy3k) then "" else ''
|
||||
sed -i -e "s/'futures'//" setup.py
|
||||
'';
|
||||
|
||||
# tests are not packaged in pypi release
|
||||
doCheck = false;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
}
|
||||
@@ -31,7 +31,7 @@ in buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pykickstart pyparted pyblock pyudev selinuxWithPython cryptsetupWithPython
|
||||
pykickstart pyparted pyblock pyudev selinuxWithPython.py cryptsetupWithPython
|
||||
six
|
||||
];
|
||||
|
||||
|
||||
38
pkgs/development/python-modules/boto/default.nix
Normal file
38
pkgs/development/python-modules/boto/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, nose
|
||||
, mock
|
||||
, requests
|
||||
, httpretty
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boto";
|
||||
version = "2.49.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/test.py default
|
||||
'';
|
||||
|
||||
checkInputs = [ nose mock ];
|
||||
propagatedBuildInputs = [ requests httpretty ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
homepage = https://github.com/boto/boto;
|
||||
license = licenses.mit;
|
||||
description = "Python interface to Amazon Web Services";
|
||||
longDescription = ''
|
||||
The boto module is an integrated interface to current and
|
||||
future infrastructural services offered by Amazon Web
|
||||
Services. This includes S3, SQS, EC2, among others.
|
||||
'';
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/cachecontrol/default.nix
Normal file
34
pkgs/development/python-modules/cachecontrol/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, msgpack
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.12.5";
|
||||
pname = "CacheControl";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cef77effdf51b43178f6a2d3b787e3734f98ade253fa3187f3bb7315aaa42ff7";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ requests msgpack ];
|
||||
|
||||
# tests not included with pypi release
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
pytest tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/ionrock/cachecontrol;
|
||||
description = "Httplib2 caching for requests";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cligj";
|
||||
version = "0.4.0";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mapbox";
|
||||
repo = "cligj";
|
||||
rev = version;
|
||||
sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8";
|
||||
sha256 = "13vlibbn86dhh6iy8k831vsa249746jnk419wcr9vvr3pqxml6g2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k
|
||||
, pyperclip, six, pyparsing, vim, wcwidth, colorama
|
||||
, contextlib2 ? null, setuptools_scm
|
||||
, pytest, mock, which, glibcLocales
|
||||
, contextlib2 ? null, typing ? null, setuptools_scm
|
||||
, pytest, mock ? null, pytest-mock
|
||||
, which, glibcLocales
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "cmd2";
|
||||
version = "0.9.4";
|
||||
version = "0.9.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0037dcf92331c63ae43e7e644536e646fff8be2fd5a83da06b3482f910f929c6";
|
||||
sha256 = "0279p76n6yny6psys9fc6yjdrqiisbpmrl59a2vxy56hi7094kaw";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
@@ -23,12 +24,6 @@ buildPythonPackage rec {
|
||||
export PATH=$(realpath bin):$PATH
|
||||
'';
|
||||
|
||||
checkInputs= [ pytest mock which vim glibcLocales ];
|
||||
checkPhase = ''
|
||||
# test_path_completion_user_expansion might be fixed in the next release
|
||||
py.test -k 'not test_path_completion_user_expansion'
|
||||
'';
|
||||
doCheck = !stdenv.isDarwin;
|
||||
disabled = !isPy3k;
|
||||
|
||||
buildInputs = [
|
||||
@@ -42,9 +37,20 @@ buildPythonPackage rec {
|
||||
pyparsing
|
||||
wcwidth
|
||||
]
|
||||
++ stdenv.lib.optional (pythonOlder "3.5") contextlib2
|
||||
++ stdenv.lib.optionals (pythonOlder "3.5") [contextlib2 typing]
|
||||
;
|
||||
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
# pytest-cov
|
||||
# argcomplete will generate errors
|
||||
checkInputs= [ pytest mock which vim glibcLocales pytest-mock ]
|
||||
++ stdenv.lib.optional (pythonOlder "3.6") [ mock ];
|
||||
checkPhase = ''
|
||||
# test_path_completion_user_expansion might be fixed in the next release
|
||||
py.test -k 'not test_path_completion_user_expansion'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Enhancements for standard library's cmd module";
|
||||
homepage = https://github.com/python-cmd2/cmd2;
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "1.11.15";
|
||||
version = "1.11.16";
|
||||
|
||||
disabled = pythonOlder "2.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
|
||||
sha256 = "0h2sl02x2mxr3rl3dy750pzm5kvmx77116fys8rrgw164kc3b0mi";
|
||||
sha256 = "14apywfi8mfy50xh07cagp24kx9mlqfzfq4f60klz90ng328q9i9";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "2.0.8";
|
||||
version = "2.0.9";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "12z3b9v0zl7w9bm5sl7dpkk5w35ypalizfmnaj9jac41k8vfmbk8";
|
||||
sha256 = "0sgx548zp5xf8dajiamdskbrphssiyajhgbw8iza6b68mda4bnfn";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "2.1.1";
|
||||
version = "2.1.2";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0b7p6d77xqs2hdq2k1amqgbr3050zn5i8asz5w2lxajqnvb1rk71";
|
||||
sha256 = "0ibbs76pzy8zd47yviljrp1s66fmbf5b62fixayaznj7pdzavg7g";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
|
||||
26
pkgs/development/python-modules/dopy/default.nix
Normal file
26
pkgs/development/python-modules/dopy/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, requests
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2016-01-04";
|
||||
pname = "dopy";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Wiredcraft";
|
||||
repo = "dopy";
|
||||
rev = "cb443214166a4e91b17c925f40009ac883336dc3";
|
||||
sha256 ="0ams289qcgna96aak96jbz6wybs6qb95h2gn8lb4lmx2p5sq4q56";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Digital Ocean API python wrapper";
|
||||
homepage = "https://github.com/Wiredcraft/dopy";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lihop ];
|
||||
};
|
||||
}
|
||||
19
pkgs/development/python-modules/eradicate/default.nix
Normal file
19
pkgs/development/python-modules/eradicate/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "eradicate";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "092zmck919bn6sl31ixrzhn88g9nvhwzmwzpq8dzgn6c8k2h3bzr";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "eradicate removes commented-out code from Python files.";
|
||||
homepage = https://github.com/myint/eradicate;
|
||||
license = [ licenses.mit ];
|
||||
|
||||
maintainers = [ maintainers.mmlb ];
|
||||
};
|
||||
}
|
||||
36
pkgs/development/python-modules/fdint/default.nix
Normal file
36
pkgs/development/python-modules/fdint/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cython
|
||||
, numpy
|
||||
, python
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.0.2";
|
||||
pname = "fdint";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "30db139684d362652670e2cd3206b5dd7b3b93b86c3aff37f4b4fd4a3f98aead";
|
||||
};
|
||||
|
||||
buildInputs = [ cython ];
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
# tests not included with pypi release
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m fdint.tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/scott-maddox/fdint;
|
||||
description = "A free, open-source python package for quickly and precisely approximating Fermi-Dirac integrals";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
40
pkgs/development/python-modules/gidgethub/default.nix
Normal file
40
pkgs/development/python-modules/gidgethub/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
, twisted
|
||||
, treq
|
||||
, tornado
|
||||
, aiohttp
|
||||
, uritemplate
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gidgethub";
|
||||
version = "2.5.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d37fdfd149bc0efa21d3899c737d9b5c7ff6348a9b3f03bf3aa0e9f8ca345483";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools pytestrunner ];
|
||||
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
||||
propagatedBuildInputs = [ uritemplate ];
|
||||
|
||||
# requires network (reqests github.com)
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An async GitHub API library";
|
||||
homepage = https://github.com/brettcannon/gidgethub;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/gsd/default.nix
Normal file
27
pkgs/development/python-modules/gsd/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.5.2";
|
||||
pname = "gsd";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ce73a9bc7b79968a2b96cc2b0934e2cbe11700adbd02b4b492fea1e3d4d51f4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
# tests not packaged with gsd
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://bitbucket.org/glotzer/gsd;
|
||||
description = "General simulation data file format";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
35
pkgs/development/python-modules/hdmedians/default.nix
Normal file
35
pkgs/development/python-modules/hdmedians/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, cython
|
||||
, numpy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.13";
|
||||
pname = "hdmedians";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "230f80e064d905c49a1941af1b7e806e2f22b3c9a90ad5c21fd17d72636ea277";
|
||||
};
|
||||
|
||||
# nose was specified in setup.py as a build dependency...
|
||||
buildInputs = [ cython nose ];
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
# cannot resolve path for packages in tests
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/daleroberts/hdmedians;
|
||||
description = "High-dimensional medians";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -1,23 +1,18 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, pyyaml
|
||||
}:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pyyaml, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "helper";
|
||||
version = "2.4.1";
|
||||
version = "2.4.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4e33dde42ad4df30fb7790689f93d77252cff26a565610d03ff2e434865a53a2";
|
||||
sha256 = "0p56dvjpaz9wnr0ik2wmvgqjf9ji180bhjky7q272l5dan94lgd6";
|
||||
};
|
||||
|
||||
buildInputs = [ mock ];
|
||||
checkInputs = [ mock ];
|
||||
propagatedBuildInputs = [ pyyaml ];
|
||||
|
||||
# No tests
|
||||
# No tests in the pypi tarball
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
@@ -25,5 +20,4 @@ buildPythonPackage rec {
|
||||
homepage = https://helper.readthedocs.org/;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
20
pkgs/development/python-modules/histbook/default.nix
Normal file
20
pkgs/development/python-modules/histbook/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, numpy, pandas }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "histbook";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "12d5l4c5pxwac5hzcfif51j87qjljm0w9nd0c8pnhj7q2snap4x4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy pandas ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/scikit-hep/histbook;
|
||||
description = "Versatile, high-performance histogram toolkit for Numpy";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/imutils/default.nix
Normal file
27
pkgs/development/python-modules/imutils/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, opencv3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.5.1";
|
||||
pname = "imutils";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "37d17adc9e71386c59b28f4ef5972ef6fe0023714fa1a652b8edc83f7ce0654c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ opencv3 ];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/jrosebr1/imutils;
|
||||
description = "A series of convenience functions to make basic image processing functions";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "invoke";
|
||||
version = "1.1.1";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1c2cf54c9b9af973ad9704d8ba81b225117cab612568cacbfb3fc42958cc20a9";
|
||||
sha256 = "1dr1a5qbb9z5hyns4zk086zm0iqbms33zv0s1296wx502y7jyjfw";
|
||||
};
|
||||
|
||||
# errors with vendored libs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cjson
|
||||
@@ -8,6 +8,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonrpclib";
|
||||
version = "0.1.7";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
@@ -17,10 +18,10 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ cjson ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "JSON RPC client library";
|
||||
homepage = https://pypi.python.org/pypi/jsonrpclib/;
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
maintainers = [ stdenv.lib.maintainers.joachifm ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.joachifm ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pkgs-docker
|
||||
, docker
|
||||
, traitlets
|
||||
, python-json-logger
|
||||
, escapism
|
||||
, jinja2
|
||||
, ruamel_yaml
|
||||
, pyyaml
|
||||
, pytest
|
||||
, wheel
|
||||
, pytestcov
|
||||
, pythonAtLeast
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.6.0";
|
||||
pname = "jupyter-repo2docker";
|
||||
disabled = !(pythonAtLeast "3.4");
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "32c6dc6fd2402d6f5a955f8ab59299097bb5f4972c7dcc6fe2a8fe4c96dcab27";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pyyaml wheel pytestcov ];
|
||||
propagatedBuildInputs = [ pkgs-docker docker traitlets python-json-logger escapism jinja2 ruamel_yaml ];
|
||||
|
||||
# tests not packaged with pypi release
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://repo2docker.readthedocs.io/en/latest/;
|
||||
description = "Repo2docker: Turn code repositories into Jupyter enabled Docker Images";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/lockfile/default.nix
Normal file
29
pkgs/development/python-modules/lockfile/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pbr
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lockfile";
|
||||
version = "0.12.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799";
|
||||
};
|
||||
|
||||
buildInputs = [ pbr ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://launchpad.net/pylockfile;
|
||||
description = "Platform-independent advisory file locking capability for Python applications";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
30
pkgs/development/python-modules/mwclient/default.nix
Normal file
30
pkgs/development/python-modules/mwclient/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
|
||||
, responses, mock, pytestcov, pytest, pytestcache, pytestpep8, coverage, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.9.1";
|
||||
pname = "mwclient";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mwclient";
|
||||
repo = "mwclient";
|
||||
rev = "v${version}";
|
||||
sha256 = "0l7l5j7znlyn2yqvdfxr4dq23wyp6d8z49pnkjqy2kan11nrjzym";
|
||||
};
|
||||
|
||||
buildInputs = [ mock responses pytestcov pytest pytestcache pytestpep8 coverage ];
|
||||
|
||||
propagatedBuildInputs = [ six requests requests_oauthlib ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python client library to the MediaWiki API";
|
||||
maintainers = with maintainers; [ ];
|
||||
license = licenses.mit;
|
||||
homepage = https://github.com/mwclient/mwclient;
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, typing, isPy3k }:
|
||||
{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mypy_extensions";
|
||||
@@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||
sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ typing ];
|
||||
propagatedBuildInputs = if pythonOlder "3.5" then [ typing ] else [ ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
||||
|
||||
23
pkgs/development/python-modules/nest-asyncio/default.nix
Normal file
23
pkgs/development/python-modules/nest-asyncio/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonAtLeast
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.9.1";
|
||||
pname = "nest_asyncio";
|
||||
disabled = !(pythonAtLeast "3.5");
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0844af67deda3243389d47cd8754b6775c5c828345e0277beca7bd008d273392";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/erdewit/nest_asyncio;
|
||||
description = "Patch asyncio to allow nested event loops";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
32
pkgs/development/python-modules/nvchecker/default.nix
Normal file
32
pkgs/development/python-modules/nvchecker/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, pytest_xdist, flaky, tornado }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nvchecker";
|
||||
version = "1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1nk9ff26s5r6v5v7w4l9110qi5kmhllvwk5kh20zyyhdvxv72m3i";
|
||||
};
|
||||
|
||||
# tornado is not present in the tarball setup.py but is required by the executable
|
||||
propagatedBuildInputs = [ setuptools structlog tornado ];
|
||||
checkInputs = [ pytest pytest-asyncio pytest_xdist flaky ];
|
||||
|
||||
# Disable tests for now, because our version of pytest seems to be too new
|
||||
# https://github.com/lilydjwg/nvchecker/commit/42a02efec84824a073601e1c2de30339d251e4c7
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/lilydjwg/nvchecker;
|
||||
description = "New version checker for software";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ marsam ];
|
||||
};
|
||||
}
|
||||
46
pkgs/development/python-modules/peewee/default.nix
Normal file
46
pkgs/development/python-modules/peewee/default.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub
|
||||
, sqlite
|
||||
, cython
|
||||
, apsw
|
||||
, flask
|
||||
, withPostgres ? false, psycopg2
|
||||
, withMysql ? false, mysql-connector
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
pname = "peewee";
|
||||
version = "3.7.1";
|
||||
|
||||
# pypi release does not provide tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "coleifer";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0chn8mknzvkmcmysy2291hanf0vg3sfzqgfc5hqx1nnrd6qkiq8r";
|
||||
};
|
||||
|
||||
|
||||
checkInputs = [ flask ];
|
||||
|
||||
checkPhase = ''
|
||||
rm -r playhouse # avoid using the folder in the cwd
|
||||
python runtests.py
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
cython # compile speedups
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
apsw # sqlite performance improvement
|
||||
] ++ (lib.optional withPostgres psycopg2)
|
||||
++ (lib.optional withMysql mysql-connector);
|
||||
|
||||
meta = with stdenv.lib;{
|
||||
description = "a small, expressive orm";
|
||||
homepage = http://peewee-orm.com;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/progress/default.nix
Normal file
29
pkgs/development/python-modules/progress/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.4";
|
||||
pname = "progress";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5e2f9da88ed8236a76fffbee3ceefd259589cf42dfbc2cec2877102189fae58a";
|
||||
};
|
||||
|
||||
# tests not packaged with pypi release
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} test_progress.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/verigak/progress/;
|
||||
description = "Easy to use progress bars";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/pyannotate/default.nix
Normal file
34
pkgs/development/python-modules/pyannotate/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, six
|
||||
, mypy_extensions
|
||||
, typing
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.6";
|
||||
pname = "pyannotate";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "dbdc2a26cbf45490a650e976ba45f99abe9ddbf0af5746307914e5ef419e325e";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ six mypy_extensions ]
|
||||
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/dropbox/pyannotate;
|
||||
description = "Auto-generate PEP-484 annotations";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, parquet-cpp, pkgconfig, setuptools_scm, six }:
|
||||
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, pkgconfig, setuptools_scm, six }:
|
||||
|
||||
let
|
||||
_arrow-cpp = arrow-cpp.override { inherit python;};
|
||||
_parquet-cpp = parquet-cpp.override { arrow-cpp = _arrow-cpp; };
|
||||
_arrow-cpp = arrow-cpp.override { inherit python; };
|
||||
in
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,18 +16,11 @@ buildPythonPackage rec {
|
||||
checkInputs = [ pandas pytest pytestrunner JPype1 ];
|
||||
|
||||
PYARROW_BUILD_TYPE = "release";
|
||||
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib;${PARQUET_HOME}/lib";
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace CMakeLists.txt --replace "\''${ARROW_ABI_VERSION}" '"0.0.0"'
|
||||
substituteInPlace CMakeLists.txt --replace "\''${ARROW_SO_VERSION}" '"0"'
|
||||
|
||||
# fix the hardcoded value
|
||||
substituteInPlace cmake_modules/FindParquet.cmake --replace 'set(PARQUET_ABI_VERSION "1.0.0")' 'set(PARQUET_ABI_VERSION "${_parquet-cpp.version}")'
|
||||
'';
|
||||
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
|
||||
|
||||
preCheck = ''
|
||||
rm pyarrow/tests/test_hdfs.py
|
||||
rm pyarrow/tests/test_cuda.py
|
||||
|
||||
# fails: "ArrowNotImplementedError: Unsupported numpy type 22"
|
||||
substituteInPlace pyarrow/tests/test_feather.py --replace "test_timedelta_with_nulls" "_disabled"
|
||||
@@ -47,7 +39,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
ARROW_HOME = _arrow-cpp;
|
||||
PARQUET_HOME = _parquet-cpp;
|
||||
PARQUET_HOME = _arrow-cpp;
|
||||
|
||||
setupPyBuildFlags = ["--with-parquet" ];
|
||||
|
||||
|
||||
@@ -1,22 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
||||
, mccabe, pycodestyle, pydocstyle, pyflakes
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, eradicate, mccabe, pycodestyle, pydocstyle, pyflakes
|
||||
, pytest, ipdb }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylama";
|
||||
version = "7.4.3";
|
||||
version = "7.5.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "390c1dab1daebdf3d6acc923e551b035c3faa77d8b96b98530c230493f9ec712";
|
||||
sha256 = "1zg7wca9s5srvbj3kawalv4438l47hg7m6gaw8rd4i43lbyyqya6";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
url = "${meta.homepage}/pull/116.patch";
|
||||
sha256 = "00jz5k2w0xahs1m3s603j6l4cwzz92qsbbk81fh17nq0f47999mv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mccabe pycodestyle pydocstyle pyflakes ];
|
||||
propagatedBuildInputs = [
|
||||
eradicate
|
||||
mccabe
|
||||
pycodestyle
|
||||
pydocstyle
|
||||
pyflakes
|
||||
];
|
||||
|
||||
checkInputs = [ pytest ipdb ];
|
||||
|
||||
@@ -27,7 +28,7 @@ buildPythonPackage rec {
|
||||
description = "Code audit tool for python";
|
||||
homepage = https://github.com/klen/pylama;
|
||||
# ambiguous license declarations: https://github.com/klen/pylama/issues/64
|
||||
license = licenses.lgpl3;
|
||||
license = [ licenses.lgpl3 ];
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyls-black";
|
||||
version = "0.2.1";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rupert";
|
||||
repo = "pyls-black";
|
||||
rev = "v${version}";
|
||||
sha256 = "0xa3iv8nhnj0lw0dh41qb0dqp55sb6rdxalbk60v8jll6qyc0si8";
|
||||
sha256 = "1pagbafb9r9glzy7nbvrq19msjy4wqahrvmc0wll0a0r4msqpi1d";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
@@ -19,9 +19,6 @@ buildPythonPackage rec {
|
||||
pytest
|
||||
'';
|
||||
|
||||
# Enable when https://github.com/rupert/pyls-black/pull/6 is merged.
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [ black toml python-language-server ];
|
||||
|
||||
@@ -22,6 +22,11 @@ buildPythonPackage rec {
|
||||
'CDLL("${libmediainfo}/lib/libmediainfo${stdenv.hostPlatform.extensions.sharedLibrary}")' \
|
||||
--replace 'CDLL("libmediainfo.so.0")' \
|
||||
'CDLL("${libmediainfo}/lib/libmediainfo${stdenv.hostPlatform.extensions.sharedLibrary}.0")'
|
||||
|
||||
# Fix test, remove after version 2.3.0
|
||||
substituteInPlace tests/test_pymediainfo.py \
|
||||
--replace 'codec, "AVC"' 'format, "AVC"' \
|
||||
--replace 'codec, "AAC LC"' 'format, "AAC"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
29
pkgs/development/python-modules/pystache/default.nix
Normal file
29
pkgs/development/python-modules/pystache/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, python, fetchPypi, isPy3k, glibcLocales }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pystache-${version}";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
# SyntaxError Python 3
|
||||
# https://github.com/defunkt/pystache/issues/181
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et";
|
||||
homepage = https://github.com/defunkt/pystache;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
28
pkgs/development/python-modules/pytest-annotate/default.nix
Normal file
28
pkgs/development/python-modules/pytest-annotate/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pyannotate
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.2";
|
||||
pname = "pytest-annotate";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "03e4dece2d1aa91666034f1b2e8bb7a7b8c6be11baf3cf2929b26eea5c6e86f3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyannotate pytest ];
|
||||
|
||||
# not testing for a testing module...
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/kensho-technologies/pytest-annotate;
|
||||
description = "Generate PyAnnotate annotations from your pytest tests";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
42
pkgs/development/python-modules/pytest-ansible/default.nix
Normal file
42
pkgs/development/python-modules/pytest-ansible/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, ansible
|
||||
, pytest
|
||||
, mock
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.0.1";
|
||||
pname = "pytest-ansible";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "553f2bc9e64f8c871ad29b7d5c100f6e549fe85db26bd1ff5dda8b769bb38a3e";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i "s/'setuptools-markdown'//g" setup.py
|
||||
'';
|
||||
|
||||
# requires pandoc < 2.0
|
||||
# buildInputs = [ setuptools-markdown ];
|
||||
checkInputs = [ mock ];
|
||||
propagatedBuildInputs = [ ansible pytest ];
|
||||
|
||||
# tests not included with release
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
pytest tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/jlaska/pytest-ansible;
|
||||
description = "Plugin for py.test to simplify calling ansible modules from tests or fixtures";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.1.9";
|
||||
pname = "python-json-logger";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e3636824d35ba6a15fc39f573588cba63cf46322a5dc86fb2f280229077e9fbe";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/madzak/python-json-logger;
|
||||
description = "A python library adding a json log formatter";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/pyvoro/default.nix
Normal file
24
pkgs/development/python-modules/pyvoro/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.3.2";
|
||||
pname = "pyvoro";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f31c047f6e4fc5f66eb0ab43afd046ba82ce247e18071141791364c4998716fc";
|
||||
};
|
||||
|
||||
# No tests in package
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/joe-jordan/pyvoro;
|
||||
description = "2D and 3D Voronoi tessellations: a python entry point for the voro++ library";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
55
pkgs/development/python-modules/scikit-bio/default.nix
Normal file
55
pkgs/development/python-modules/scikit-bio/default.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cython
|
||||
, lockfile
|
||||
, cachecontrol
|
||||
, decorator
|
||||
, ipython
|
||||
, matplotlib
|
||||
, natsort
|
||||
, numpy
|
||||
, pandas
|
||||
, scipy
|
||||
, hdmedians
|
||||
, scikitlearn
|
||||
, pytest
|
||||
, coverage
|
||||
, python
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.5.4";
|
||||
pname = "scikit-bio";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3243f1995ef24643c09ff4d9391a79528aadd8232e5aa5d66c38d7b2e0c92f24";
|
||||
};
|
||||
|
||||
buildInputs = [ cython ];
|
||||
checkInputs = [ coverage ];
|
||||
propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikitlearn ];
|
||||
|
||||
# remove on when version > 0.5.4
|
||||
postPatch = ''
|
||||
sed -i "s/numpy >= 1.9.2, < 1.14.0/numpy/" setup.py
|
||||
sed -i "s/pandas >= 0.19.2, < 0.23.0/pandas/" setup.py
|
||||
'';
|
||||
|
||||
# cython package not included for tests
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m skbio.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://scikit-bio.org/;
|
||||
description = "Data structures, algorithms and educational resources for bioinformatics";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
, pretend
|
||||
, freezegun
|
||||
, simplejson
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -25,8 +26,8 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ pytest pretend freezegun ];
|
||||
propagatedBuildInputs = [ simplejson ];
|
||||
checkInputs = [ pytest pretend freezegun simplejson ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkPhase = ''
|
||||
rm tests/test_twisted.py*
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tensorflow-tensorboard";
|
||||
version = "1.9.0";
|
||||
version = "1.11.0";
|
||||
format = "wheel";
|
||||
|
||||
src = fetchPypi ({
|
||||
@@ -22,10 +22,10 @@ buildPythonPackage rec {
|
||||
format = "wheel";
|
||||
} // (if isPy3k then {
|
||||
python = "py3";
|
||||
sha256 = "42a04637a636e16054b065907c81396b83a9702948ecd14218f19dc5cf85de98";
|
||||
sha256 = "1nkd37zq9mk0gc9x6d4x8whahbx2cn0wl94lir3g1pibdzx9hc4v";
|
||||
} else {
|
||||
python = "py2";
|
||||
sha256 = "97661706fbe857c372405e0f5bd7c3db2197b5e70cec88f6924b726fde65c2c1";
|
||||
sha256 = "1mkyb5gn952i4s7fmc9ay4yh74ysrqbiqna6dl1qmahjpbaavbf5";
|
||||
}));
|
||||
|
||||
propagatedBuildInputs = [ numpy werkzeug protobuf markdown grpcio ] ++ lib.optional (!isPy3k) futures;
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
, zlib
|
||||
, python
|
||||
, symlinkJoin
|
||||
, keras-applications
|
||||
, keras-preprocessing
|
||||
}:
|
||||
|
||||
# We keep this binary build for two reasons:
|
||||
@@ -39,7 +41,7 @@ let
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "tensorflow";
|
||||
version = "1.9.0";
|
||||
version = "1.11.0";
|
||||
format = "wheel";
|
||||
|
||||
src = let
|
||||
@@ -48,12 +50,11 @@ in buildPythonPackage rec {
|
||||
platform = if stdenv.isDarwin then "mac" else "linux";
|
||||
unit = if cudaSupport then "gpu" else "cpu";
|
||||
key = "${platform}_py_${pyver}_${unit}";
|
||||
dls = import ./tf1.9.0-hashes.nix;
|
||||
dls = import ./tf1.11.0-hashes.nix;
|
||||
in fetchurl dls.${key};
|
||||
|
||||
propagatedBuildInputs = [ protobuf numpy termcolor grpcio six astor absl-py gast tensorflow-tensorboard ]
|
||||
++ lib.optional (!isPy3k) mock
|
||||
++ lib.optionals (pythonOlder "3.4") [ backports_weakref enum34 ];
|
||||
propagatedBuildInputs = [ protobuf numpy termcolor grpcio six astor absl-py gast tensorflow-tensorboard keras-applications keras-preprocessing ]
|
||||
++ lib.optional (!isPy3k) mock;
|
||||
|
||||
# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
|
||||
# and the propageted input tensorflow-tensorboard which causes environment collisions.
|
||||
@@ -72,7 +73,7 @@ in buildPythonPackage rec {
|
||||
([ stdenv.cc.cc.lib zlib ] ++ lib.optionals cudaSupport [ cudatoolkit_joined cudnn nvidia_x11 ]);
|
||||
in
|
||||
lib.optionalString (stdenv.isLinux) ''
|
||||
rrPath="$out/${python.sitePackages}/tensorflow/:${rpath}"
|
||||
rrPath="$out/${python.sitePackages}/tensorflow/:$out/${python.sitePackages}/tensorflow/contrib/tensor_forest/:${rpath}"
|
||||
internalLibPath="$out/${python.sitePackages}/tensorflow/python/_pywrap_tensorflow_internal.so"
|
||||
find $out -name '*${stdenv.hostPlatform.extensions.sharedLibrary}' -exec patchelf --set-rpath "$rrPath" {} \;
|
||||
'';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version=1.9.0
|
||||
version=1.11.0
|
||||
hashfile=tf${version}-hashes.nix
|
||||
rm -f $hashfile
|
||||
echo "{" >> $hashfile
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
linux_py_27_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.11.0-cp27-none-linux_x86_64.whl";
|
||||
sha256 = "0s3ar2jzz2m9ilqfl4aigfi4bq8k5n04grnfqy4nyii2y98xjy14";
|
||||
};
|
||||
linux_py_35_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.11.0-cp35-cp35m-linux_x86_64.whl";
|
||||
sha256 = "0vfw2v033h8wdgjlbwjx2i9fdqqnxxc3r085irq9nzkdmwzw2jl8";
|
||||
};
|
||||
linux_py_36_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.11.0-cp36-cp36m-linux_x86_64.whl";
|
||||
sha256 = "0zmr5bw3ki5l6jb19h70kmq3k3xnq60jkw6wqqr6par1c7b4i9c3";
|
||||
};
|
||||
linux_py_27_gpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.11.0-cp27-none-linux_x86_64.whl";
|
||||
sha256 = "1pcacy4ky7zhq7h7d93s4xp213q1yj2zxn2khlyll389lq0bcbax";
|
||||
};
|
||||
linux_py_35_gpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.11.0-cp35-cp35m-linux_x86_64.whl";
|
||||
sha256 = "04ggz7jzbhl41alnj526rp0vz88h68mcv3rbs5pmrwyg0j2cqjz3";
|
||||
};
|
||||
linux_py_36_gpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.11.0-cp36-cp36m-linux_x86_64.whl";
|
||||
sha256 = "1ywpq3n51pn7jrr231immi2s6ghdy9s0bnkk7dg4dbbxrisxg33a";
|
||||
};
|
||||
mac_py_2_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.11.0-py2-none-any.whl";
|
||||
sha256 = "1rjb6gm0spj0l5zl02zsr6x3qagf2khrjw02z7znmsshb5xhsx8j";
|
||||
};
|
||||
mac_py_3_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.11.0-py3-none-any.whl";
|
||||
sha256 = "16la41a2d29wa4i7h1g32d94g23ixzc3wc69kd9w82w45bwfv4xl";
|
||||
};
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
linux_py_27_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp27-none-linux_x86_64.whl";
|
||||
sha256 = "1dvmajv5ddgzrazdnxpfhk9dkj0lfiviw4jmvk00d4q5v68z6ihg";
|
||||
};
|
||||
linux_py_35_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp35-cp35m-linux_x86_64.whl";
|
||||
sha256 = "07ilrxbhz9p3xwqhl2p8c40y1gsq68x10f34pzayrvcg2i52bvpv";
|
||||
};
|
||||
linux_py_36_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp36-cp36m-linux_x86_64.whl";
|
||||
sha256 = "0x2l64ab7i8nr0dzvsryblhn869qyjb85xkhy69nwahqswb68hxl";
|
||||
};
|
||||
linux_py_27_gpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.9.0-cp27-none-linux_x86_64.whl";
|
||||
sha256 = "0q7i82jgy0mzn2mw8i1z0pvv7ssi6m7zqkkjg2i4zxpk8djg8k6z";
|
||||
};
|
||||
linux_py_35_gpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.9.0-cp35-cp35m-linux_x86_64.whl";
|
||||
sha256 = "0nhq2s8fanm095x1sc9h40dvqcv9bc2aj47crv3c2sajbj7dn43g";
|
||||
};
|
||||
linux_py_36_gpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.9.0-cp36-cp36m-linux_x86_64.whl";
|
||||
sha256 = "1m4b9cd8ghghqxaqrlzq7j9499ddidgr78bx0c20pgyrzg38jiz1";
|
||||
};
|
||||
mac_py_2_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py2-none-any.whl";
|
||||
sha256 = "1djj0xahzrmxhfc6kyjx1lkyfh7jhq3ix0gz9j3iq4smb3ca9z01";
|
||||
};
|
||||
mac_py_3_cpu = {
|
||||
url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl";
|
||||
sha256 = "0igffy7r0d8mhkn4pybp19jmc25alfpfl4k4fxh2s3rvgii8gk22";
|
||||
};
|
||||
}
|
||||
33
pkgs/development/python-modules/vidstab/default.nix
Normal file
33
pkgs/development/python-modules/vidstab/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
, pandas
|
||||
, imutils
|
||||
, progress
|
||||
, matplotlib
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.1.5";
|
||||
pname = "vidstab";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b775652cc4f41812de04bc443ad522c1bdaef456a00c74857e9ebc5d2066e362";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ numpy pandas imutils progress matplotlib ];
|
||||
|
||||
# tests not packaged with pypi
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/AdamSpannbauer/python_video_stab;
|
||||
description = "Video Stabilization using OpenCV";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "XStatic-Bootbox";
|
||||
version = "4.3.0.1";
|
||||
version = "4.4.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "0wks1lsqngn3gvlhzrvaan1zj8w4wr58xi0pfqhrzckbghvvr0gj";
|
||||
sha256 = "1g00q38g1k576lxjlwglv4w3fj4z0z8lxlwpc66wyhjglj4r4bwd";
|
||||
};
|
||||
|
||||
# no tests implemented
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "XStatic-jQuery-File-Upload";
|
||||
version = "9.7.0.1";
|
||||
version = "9.22.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "0d5za18lhzhb54baxq8z73wazq801n3qfj5vgcz7ri3ngx7nb0cg";
|
||||
sha256 = "0jy7xnww0177fv0asssxvv8l1032jcnbkvz39z16yd6k34v53fzf";
|
||||
};
|
||||
|
||||
# no tests implemented
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "XStatic-jQuery";
|
||||
version = "1.10.2.1";
|
||||
version = "3.3.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "018kx4zijflcq8081xx6kmiqf748bsjdq7adij2k91bfp1mnlhc3";
|
||||
sha256 = "0xlgs4rlabzfcp8p2zspwpsljycb0djyrk7qy4qh76i7zkfhwn8j";
|
||||
};
|
||||
|
||||
# no tests implemented
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "XStatic-Pygments";
|
||||
version = "1.6.0.1";
|
||||
version = "2.2.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "0fjqgg433wfdnswn7fad1g6k2x6mf24wfnay2j82j0fwgkdxrr7m";
|
||||
sha256 = "1rm073ag1hgwlazl52mng62wvnayz7ckr5ki341shvp9db1x2n51";
|
||||
};
|
||||
|
||||
# no tests implemented
|
||||
|
||||
Reference in New Issue
Block a user