Merge branch 'master' into ihatemoney
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "APScheduler";
|
||||
version = "3.6.1";
|
||||
version = "3.6.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1c56066rx09xk1zbd156whsynlakxazqq64i509id17015wzp6jj";
|
||||
sha256 = "3bb5229eed6fbbdafc13ce962712ae66e175aa214c69bed35a06bffcf0c5e244";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -1,21 +1,19 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytz, pytest, freezegun, glibcLocales }:
|
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, pytz, pytest, freezegun, glibcLocales }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Babel";
|
||||
version = "2.6.0";
|
||||
version = "2.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8cba50f48c529ca3fa18cf81fa9403be176d374ac4d60738b839122dfaaa3d23";
|
||||
sha256 = "e86135ae101e31e2c8ec20a4e0c5220f4eed12487d5cf3f78be7e98d3a57fc28";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pytz ];
|
||||
|
||||
checkInputs = [ pytest freezegun glibcLocales ];
|
||||
checkInputs = [ pytest freezegun ];
|
||||
|
||||
preCheck = ''
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
'';
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = http://babel.edgewall.org;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, python
|
||||
, glibcLocales
|
||||
, pkgconfig
|
||||
@@ -25,11 +26,11 @@ let
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "Cython";
|
||||
version = "0.29.13";
|
||||
version = "0.29.14";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c29d069a4a30f472482343c866f7486731ad638ef9af92bfe5fca9c7323d638e";
|
||||
sha256 = "e4d6bb8703d0319eb04b7319b12ea41580df44fd84d83ccda13ea463c6801414";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -41,6 +42,15 @@ in buildPythonPackage rec {
|
||||
buildInputs = [ glibcLocales gdb ];
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
patches = [
|
||||
# https://github.com/cython/cython/issues/2752, needed by sage (https://trac.sagemath.org/ticket/26855) and up to be included in 0.30
|
||||
(fetchpatch {
|
||||
name = "non-int-conversion-to-pyhash.patch";
|
||||
url = "https://github.com/cython/cython/commit/28251032f86c266065e4976080230481b1a1bb29.patch";
|
||||
sha256 = "19rg7xs8gr90k3ya5c634bs8gww1sxyhdavv07cyd2k71afr83gy";
|
||||
})
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
export HOME="$NIX_BUILD_TOP"
|
||||
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb2, mock, nose, ddt }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.1.11";
|
||||
version = "3.0.5";
|
||||
pname = "GitPython";
|
||||
disabled = isPy27; # no longer supported
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8237dc5bfd6f1366abeee5624111b9d6879393d84745a507de0fda86043b65a8";
|
||||
sha256 = "9c2398ffc3dcb3c40b27324b316f08a4f93ad646d5a6328cafbb871aa79f5e42";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
20
pkgs/development/python-modules/HTSeq/default.nix
Normal file
20
pkgs/development/python-modules/HTSeq/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, cython, numpy, pysam, matplotlib
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "0.11.2";
|
||||
pname = "HTSeq";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "65c4c13968506c7df92e97124df96fdd041c4476c12a548d67350ba8b436bcfc";
|
||||
};
|
||||
|
||||
buildInputs = [ cython numpy pysam ];
|
||||
propagatedBuildInputs = [ numpy pysam matplotlib ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A framework to work with high-throughput sequencing data";
|
||||
maintainers = with maintainers; [ unode ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -1,24 +1,29 @@
|
||||
{ buildPythonPackage, fetchPypi, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "JPype1";
|
||||
version = "0.6.3";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6841523631874a731e1f94e1b1f130686ad3772030eaa3b6946256eeb1d10dd1";
|
||||
sha256 = "c16d01cde9c2c955d76d45675e64b06c3255784d49cea4147024e99a01fbbb18";
|
||||
};
|
||||
|
||||
patches = [ ./set-compiler-language.patch ];
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
# ImportError: Failed to import test module: test.testlucene
|
||||
# required openjdk (easy) but then there were some class path issues
|
||||
# when running the tests
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/originell/jpype/";
|
||||
license = "License :: OSI Approved :: Apache Software License";
|
||||
description = "A Python to Java bridge.";
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/originell/jpype/;
|
||||
license = licenses.asl20;
|
||||
description = "A Python to Java bridge";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -Naur a/setup.py b/setup.py
|
||||
--- a/setup.py 2017-01-12 19:08:44.000000000 -0500
|
||||
+++ b/setup.py 2018-02-15 12:28:16.000000000 -0500
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
# extra compile args
|
||||
copt = {'msvc': ['/EHsc'],
|
||||
- 'unix' : ['-ggdb'],
|
||||
+ 'unix' : ['-ggdb', '-x', 'c++'],
|
||||
'mingw32' : [],
|
||||
}
|
||||
# extra link args
|
||||
@@ -1,16 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, JPype1 }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, JPype1
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "JayDeBeApi";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0a189xs9zw81jvwwglvf2qyqnk6ra0biljssx9n4ffayqn9glbds";
|
||||
};
|
||||
propagatedBuildInputs = [ JPype1 ];
|
||||
meta = {
|
||||
homepage = "https://github.com/baztian/jaydebeapi";
|
||||
license = lib.licenses.lgpl2;
|
||||
description = "Use JDBC database drivers from Python 2/3 or Jython with a DB-API.";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
JPype1
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/baztian/jaydebeapi;
|
||||
license = licenses.lgpl2;
|
||||
description = "Use JDBC database drivers from Python 2/3 or Jython with a DB-API";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Logbook";
|
||||
version = "1.4.3";
|
||||
version = "1.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a5a96792abd8172c80d61b7530e134524f20e2841981038031e602ed5920fef5";
|
||||
sha256 = "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ] ++ lib.optionals (!isPy3k) [ mock ];
|
||||
@@ -18,6 +18,9 @@ buildPythonPackage rec {
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
# Some of the tests use localhost networking.
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = {
|
||||
homepage = https://pythonhosted.org/Logbook/;
|
||||
description = "A logging replacement for Python";
|
||||
|
||||
@@ -1,26 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, markupsafe
|
||||
, nose
|
||||
, mock
|
||||
, pytest
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Mako";
|
||||
version = "1.0.12";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0cfa65de3a835e87eeca6ac856b3013aade55f49e32515f65d999f91a2324162";
|
||||
sha256 = "a36919599a9b7dc5d86a7a8988f23a9a3a3d083070023bab23d64f7f1d1e0a4b";
|
||||
};
|
||||
|
||||
checkInputs = [ markupsafe nose mock pytest ];
|
||||
checkInputs = [ markupsafe nose mock ];
|
||||
propagatedBuildInputs = [ markupsafe ];
|
||||
|
||||
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Super-fast templating language";
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "MechanicalSoup";
|
||||
version = "0.11.0";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7";
|
||||
sha256 = "1g976rk79apz6rc338zq3ml2yps8hb88nyw3a698d0brm4khd9ir";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Nikola";
|
||||
version = "8.0.2";
|
||||
version = "8.0.3";
|
||||
|
||||
# Nix contains only Python 3 supported version of doit, which is a dependency
|
||||
# of Nikola. Python 2 support would require older doit 0.29.0 (which on the
|
||||
@@ -54,7 +54,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1a5y1qriy76hl4yxvbf365b1ggsxybm06mi1pwb5jkgbkwk2gkrf";
|
||||
sha256 = "a53470be082fce1843fb73002be2504828f9abc49a84eab5d1effc06ae2a5ddc";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python, gnugrep }:
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python, requests, gnugrep }:
|
||||
|
||||
let
|
||||
|
||||
@@ -18,17 +18,19 @@ let
|
||||
|
||||
in
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "PyLD";
|
||||
version = "0.7.2";
|
||||
buildPythonPackage rec {
|
||||
pname = "pyld";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "digitalbazaar";
|
||||
repo = "pyld";
|
||||
rev = "652473f828e9a396d4c1db9addbd294fb7db1797";
|
||||
sha256 = "1bmpz4s6j7by6l45wwxy7dn7hmrhxc26kbx2hbfy41x29vbjg6j9";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0z2vkllw8bvzxripwb6l757r7av5qwhzsiy4061gmlhq8z8gq961";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
# Unfortunately PyLD does not pass all testcases in the JSON-LD corpus. We
|
||||
# check for at least a minimum amount of successful tests so we know it's not
|
||||
# getting worse, at least.
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Pygments";
|
||||
version = "2.4.2";
|
||||
version = "2.5.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15v2sqm5g12bqa0c7wikfh9ck2nl97ayizy1hpqhmws5gqalq748";
|
||||
sha256 = "98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ docutils ];
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ROPGadget";
|
||||
version = "5.8";
|
||||
version = "5.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "184qncm2ss474prphw0xnf7ifkpgj955dzlb2vqq94z6xvf3xyd9";
|
||||
sha256 = "0lggiqws4dzq6k6c20l515pmjajl19gymsxfggkv771dv5kr1gbs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ capstone ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Rtree";
|
||||
version = "0.8.3";
|
||||
version = "0.9.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0jc62jbcqqpjcwcly7l9zk25bg72mrxmjykpvfiscgln00qczfbc";
|
||||
sha256 = "55c046a98e8d84235792de1f18635f680d7b4085264fbced6b073f28fcbe353a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libspatialindex ];
|
||||
|
||||
@@ -35,7 +35,11 @@ let
|
||||
'';
|
||||
|
||||
# Theano spews warnings and disabled flags if the compiler isn't named g++
|
||||
cxx_compiler = wrapped "g++" "\\$HOME/.theano"
|
||||
cxx_compiler_name =
|
||||
if stdenv.cc.isGNU then "g++" else
|
||||
if stdenv.cc.isClang then "clang++" else
|
||||
throw "Unknown C++ compiler";
|
||||
cxx_compiler = wrapped cxx_compiler_name "\\$HOME/.theano"
|
||||
( stdenv.lib.optional cudaSupport libgpuarray_
|
||||
++ stdenv.lib.optional cudnnSupport cudnn );
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Wand";
|
||||
version = "0.5.6";
|
||||
version = "0.5.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "126gpx6zj7fpx87v1qgicpfdahmmkqqmd2a8abllq0jlckrmjsyh";
|
||||
sha256 = "0sjdlfhw1wdjqpmr72mckf2njy9xigx51shl510jhvl418cja2bd";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "WazeRouteCalculator";
|
||||
version = "0.9";
|
||||
version = "0.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kwr7r1cn9xxvf9asxqhsy4swx4v6hsgw5cr5wmn71qg11k1i5cx";
|
||||
sha256 = "889fe753a530b258bd23def65616666d32c48d93ad8ed211dadf2ed9afcec65b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
buildPythonPackage rec {
|
||||
|
||||
pname = "XlsxWriter";
|
||||
version = "1.2.0";
|
||||
version = "1.2.6";
|
||||
|
||||
# PyPI release tarball doesn't contain tests so let's use GitHub. See:
|
||||
# https://github.com/jmcnamara/XlsxWriter/issues/327
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
owner = "jmcnamara";
|
||||
repo = pname;
|
||||
rev = "RELEASE_${version}";
|
||||
sha256 = "0w9ggzi887w4z6i5mz24kcy7qbkd4d7gycqi0dhqgaj9lzxh7jjh";
|
||||
sha256 = "05y1py5mn1m65bbwhinzv84jd3xj8snvf2795flw0xbxnkn8nd8p";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "absl-py";
|
||||
version = "0.7.1";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b943d1c567743ed0455878fcd60bc28ac9fae38d129d1ccfad58079da00b8951";
|
||||
sha256 = "75e737d6ce7723d9ff9b7aa1ba3233c34be62ef18d5859e706b8fdc828989830";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "accupy";
|
||||
version = "0.1.4";
|
||||
version = "0.2.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2a67f2a778b824fb24eb338fed8e0b61c1af93369d57ff8132f5d602d60f0543";
|
||||
sha256 = "e27ca7eed8a1bde2e6e040f8f3ee94a5d7522f42c4360756c9ec8931cf13ca98";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "acoustics";
|
||||
version = "0.2.1";
|
||||
version = "0.2.3";
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d7cec62d3e7a7eb26026f2aacc726fb1dd0b044574cbdee83da654b847543c20";
|
||||
sha256 = "ca663059d61fbd2899aed4e3cedbc3f983aa67afd3ae1617db3c59b724206fb3";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adal";
|
||||
version = "1.2.1";
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b6edd095be66561382bdaa59d40b04490e93149fb3b7fa44c1fa5504eed5b8b9";
|
||||
sha256 = "5a7f1e037c6290c6d7609cab33a9e5e988c2fbec5c51d1c4c649ee3faff37eaf";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests pyjwt dateutil ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "addic7ed-cli";
|
||||
version = "1.4.5";
|
||||
version = "1.4.6";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16nmyw7j2igx5dxflwiwblf421g69rxb879n1553wv6hxi4x27in";
|
||||
sha256 = "182cpwxpdybsgl1nps850ysvvjbqlnx149kri4hxhgm58nqq0qf5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
|
||||
@@ -2,17 +2,19 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aenum";
|
||||
version = "2.1.2";
|
||||
version = "2.2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a3208e4b28db3a7b232ff69b934aef2ea1bf27286d9978e1e597d46f490e4687";
|
||||
sha256 = "a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8";
|
||||
};
|
||||
|
||||
# For Python 3, locale has to be set to en_US.UTF-8 for
|
||||
# tests to pass
|
||||
checkInputs = if isPy3k then [ glibcLocales ] else [];
|
||||
|
||||
# py2 likes to reorder tests
|
||||
doCheck = isPy3k;
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${if isPy3k then "export LC_ALL=en_US.UTF-8" else ""}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "affine";
|
||||
version = "2.2.2";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "146slzpj2b220dmbmrxib030wymvplawxzn7gcgnbahgm500y3gz";
|
||||
sha256 = "00jil4q3b17qml6azim7s7zar6qb1vhsf0g888y637m23bpms11f";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -1,20 +1,42 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pamqp
|
||||
, pytest
|
||||
, asynctest
|
||||
, pyrabbit2
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioamqp";
|
||||
version = "0.12.0";
|
||||
version = "0.14.0";
|
||||
disabled = isPy27;
|
||||
|
||||
meta = {
|
||||
src = fetchFromGitHub {
|
||||
owner = "Polyconseil";
|
||||
repo = pname;
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "1gpfsrc2vi6w33c9zsycd2qn589pr7a222rb41r85m915283zy48";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pamqp
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
asynctest
|
||||
pyrabbit2
|
||||
];
|
||||
|
||||
# tests assume rabbitmq server running
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/polyconseil/aioamqp;
|
||||
description = "AMQP implementation using asyncio";
|
||||
license = lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "17vrl6jajr81bql7kjgq0zkxy225px97z4g9wmbhbbnvzn1p92c0";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.3";
|
||||
}
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
# wrapped to be able to find aioconsole and any other packages.
|
||||
buildPythonPackage rec {
|
||||
pname = "aioconsole";
|
||||
version = "0.1.14";
|
||||
version = "0.1.15";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f1ddd04050d9be5e93e223a4e9367433436d245f8fe70905f4124bfde2cd3cdd";
|
||||
sha256 = "0gbl08p89959g8dqy2vainppg3kyf948xlh18p7iwk5p0mw5d3j9";
|
||||
};
|
||||
|
||||
# hardcodes a test dependency on an old version of pytest-asyncio
|
||||
|
||||
48
pkgs/development/python-modules/aiocontextvars/default.nix
Normal file
48
pkgs/development/python-modules/aiocontextvars/default.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
, contextvars
|
||||
, sqlalchemy
|
||||
, isPy27
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiocontextvars";
|
||||
version = "0.2.2";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fantix";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0a2gmrm9csiknc8n3si67sgzffkydplh9d7ga1k87ygk2aj22mmk";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pytestrunner
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
sqlalchemy
|
||||
] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asyncio support for PEP-567 contextvars backport";
|
||||
homepage = https://github.com/fantix/aiocontextvars;
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioesphomeapi";
|
||||
version = "2.0.1";
|
||||
version = "2.6.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "db09e34dfc148279f303481c7da94b84c9b1442a41794f039c31253e81a58ffb";
|
||||
sha256 = "139d1d348fcfe2f34926a210a32dff069935d17167c4e1cb66e8b039cbb4d6c1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ attrs protobuf zeroconf ];
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Client for ESPHome native API";
|
||||
homepage = https://github.com/esphome/aioesphomeapi;
|
||||
homepage = "https://github.com/esphome/aioesphomeapi";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes";
|
||||
homepage = https://aioeventlet.readthedocs.org/;
|
||||
homepage = "https://pypi.org/project/aioeventlet/";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-jinja2";
|
||||
version = "1.1.2";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0g4pqdm2kp2abam0nx0pgs5lk19f8lsfpcgwxpigdwmy1lvblsa5";
|
||||
sha256 = "2dfe29cfd278d07cd0a851afb98471bc8ce2a830968443e40d67636f3c035d79";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp jinja2 ];
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }:
|
||||
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp, attrs }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-socks";
|
||||
version = "0.2.2";
|
||||
version = "0.3.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "aiohttp_socks";
|
||||
sha256 = "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf";
|
||||
sha256 = "21974ce5d782c426ddbf7bdfc5e602a38783b1ee839a4a0ed0990240e2e123b5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
propagatedBuildInputs = [ aiohttp attrs ];
|
||||
|
||||
# Checks needs internet access
|
||||
doCheck = false;
|
||||
|
||||
33
pkgs/development/python-modules/aiohttp-swagger/default.nix
Normal file
33
pkgs/development/python-modules/aiohttp-swagger/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, flake8
|
||||
, jinja2
|
||||
, pytestCheckHook
|
||||
, pytest-aiohttp
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-swagger";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cr0hn";
|
||||
repo = pname;
|
||||
rev = "5a59e86f8c5672d2cc97dd35dc730c2f809d95ce"; # corresponds to 1.0.5 on PyPi, no tag on GitHub
|
||||
sha256 = "1vpfk5b3f7s9qzr2q48g776f39xzqppjwm57scfzqqmbldkk5nv7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp jinja2 pyyaml ];
|
||||
|
||||
checkInputs = [ flake8 pytestCheckHook pytest-aiohttp ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Swagger API Documentation builder for aiohttp";
|
||||
homepage = https://github.com/cr0hn/aiohttp-swagger;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ elohmeier ];
|
||||
};
|
||||
}
|
||||
@@ -19,29 +19,42 @@
|
||||
, pytest-mock
|
||||
, trustme
|
||||
, brotlipy
|
||||
, freezegun
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp";
|
||||
version = "3.5.4";
|
||||
version = "3.6.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9c4c83f4fa1938377da32bc2d59379025ceeee8e24b89f72fcbccd8ca22dc9bf";
|
||||
sha256 = "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
checkInputs = [
|
||||
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
|
||||
pytest-mock pytestcov trustme brotlipy
|
||||
pytest-mock pytestcov trustme brotlipy freezegun
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
|
||||
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
|
||||
|
||||
# disable tests which attempt to do loopback connections
|
||||
checkPhase = ''
|
||||
pytest -k "not test__get_valid_log_format_exc and not test_access_logger_atoms"
|
||||
cd tests
|
||||
pytest -k "not get_valid_log_format_exc \
|
||||
and not test_access_logger_atoms \
|
||||
and not aiohttp_request_coroutine \
|
||||
and not server_close_keepalive_connection \
|
||||
and not connector \
|
||||
and not client_disconnect \
|
||||
and not handle_keepalive_on_closed_connection \
|
||||
and not proxy_https_bad_response \
|
||||
and not partially_applied_handler \
|
||||
and not middleware" \
|
||||
--ignore=test_connector.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohue";
|
||||
version = "1.9.1";
|
||||
version = "1.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3c23aed8e82f398b732279f5f7ee7ed00949ff2db7009f7a2dc705f7c2d16783";
|
||||
sha256 = "d95e51f15c442d769004774e7b4220155e32dc6c8ae834b035a2f0d8ff783ff0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
49
pkgs/development/python-modules/aiokafka/default.nix
Normal file
49
pkgs/development/python-modules/aiokafka/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, kafka-python
|
||||
, cython
|
||||
, zlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiokafka";
|
||||
version = "0.5.2";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = "aiokafka";
|
||||
rev = "v${version}";
|
||||
sha256 = "062kqsq75fi5pbpqf2a8nxm43pxpr6bwplg6bp4nv2a68r850pki";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
kafka-python
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "kafka-python==1.4.6" "kafka-python"
|
||||
'';
|
||||
|
||||
# checks require running kafka server
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kafka integration with asyncio";
|
||||
homepage = https://aiokafka.readthedocs.org;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
47
pkgs/development/python-modules/aiomysql/default.nix
Normal file
47
pkgs/development/python-modules/aiomysql/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pymysql
|
||||
, pytest
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiomysql";
|
||||
version = "0.0.20";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1mxih81zc2k64briirpp5wz4f72l8v05avfyfibaq9fr6lcbih9b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pymysql
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "PyMySQL>=0.9,<=0.9.2" "PyMySQL"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
# tests require mysql database
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "MySQL driver for asyncio";
|
||||
homepage = https://github.com/aio-libs/aiomysql;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/aioredis/default.nix
Normal file
29
pkgs/development/python-modules/aioredis/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pkgs, async-timeout, hiredis, isPyPy, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioredis";
|
||||
version = "1.3.1";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
] ++ stdenv.lib.optional (!isPyPy) hiredis;
|
||||
|
||||
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Asyncio (PEP 3156) Redis client library";
|
||||
homepage = https://github.com/aio-libs/aioredis;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mmai ];
|
||||
};
|
||||
}
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioresponses";
|
||||
version = "0.6.0";
|
||||
version = "0.6.1";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ii1jiwb8qa2y8cqa1zqn7mjax9l8bpf16k4clv616mxw1l0bvs6";
|
||||
sha256 = "fab9607d11a2e05050ef766006b8fdd9424e7122c2bd6f34a5376be4c728e242";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiorpcx";
|
||||
version = "0.18.3";
|
||||
version = "0.18.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "aiorpcX";
|
||||
sha256 = "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp";
|
||||
sha256 = "0jpvrkan6w8bpq017m8si7r9hb1pyw3ip4vr1fl2pmi8ngzc1jdy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ attrs ];
|
||||
|
||||
45
pkgs/development/python-modules/aiorun/default.nix
Normal file
45
pkgs/development/python-modules/aiorun/default.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, pytest
|
||||
, pytestcov
|
||||
, uvloop
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiorun";
|
||||
version = "2019.11.1";
|
||||
format = "flit";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cjrh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "04p3sci6af6qqfkcqamsqhmqqrigcwvl4bmx8yv5ppvkyq39pxi7";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestcov
|
||||
uvloop
|
||||
];
|
||||
|
||||
# allow for writable directory for darwin
|
||||
preBuild = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Boilerplate for asyncio applications";
|
||||
homepage = https://github.com/cjrh/aiorun;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
36
pkgs/development/python-modules/aiosqlite/default.nix
Normal file
36
pkgs/development/python-modules/aiosqlite/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, aiounittest
|
||||
, isPy27
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiosqlite";
|
||||
version = "0.11.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jreese";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0pmkp4iy738yv2sl08kvhd0ma6wjqbmfnwid72gvg4zqsr1hnn0z";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiounittest
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asyncio bridge to the standard sqlite3 module";
|
||||
homepage = https://github.com/jreese/aiosqlite;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiounifi";
|
||||
version = "4";
|
||||
version = "11";
|
||||
|
||||
disabled = ! isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0594nb8mpfhnnk9jadbdnbn9v7p4sh3430kcgfyhsh7ayw2mpb9m";
|
||||
sha256 = "e751cfd002f54dda76dfd498dcc53cb6fab6bff79773ca7d18c9c7b392046b12";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
36
pkgs/development/python-modules/aiounittest/default.nix
Normal file
36
pkgs/development/python-modules/aiounittest/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, coverage
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiounittest";
|
||||
version = "1.3.1";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kwarunek";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0mlic2q49cb0vv62mixy4i4x8c91qb6jlji7khiamcxcg676nasl";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
coverage
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Test asyncio code more easily";
|
||||
homepage = https://github.com/kwarunek/aiounittest;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -1,19 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, pytestcov, mock, coverage
|
||||
, pytest, pytestcov, mock, coverage, setuptools
|
||||
, Mako, sqlalchemy, python-editor, dateutil
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alembic";
|
||||
version = "1.0.10";
|
||||
version = "1.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "828dcaa922155a2b7166c4f36ec45268944e4055c86499bd14319b4c8c0094b7";
|
||||
sha256 = "3b0cb1948833e062f4048992fbc97ecfaaaac24aaa0d83a1202a99fb58af8c6d";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pytestcov mock coverage ];
|
||||
propagatedBuildInputs = [ Mako sqlalchemy python-editor dateutil ];
|
||||
propagatedBuildInputs = [ Mako sqlalchemy python-editor dateutil setuptools ];
|
||||
|
||||
# no traditional test suite
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://bitbucket.org/zzzeek/alembic;
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alerta-server";
|
||||
version = "6.7.5";
|
||||
version = "7.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e8dc3428248a5b20c4fe8da76c2d353b715d515bd4879928c499671d4360a90f";
|
||||
sha256 = "a6f7740c97f2ae552a4b50bfb709596eabb01bf73715685c9b93ea9fec1821f3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 pyyaml];
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alerta";
|
||||
version = "6.5.0";
|
||||
version = "7.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f9f0f8f800798fae83c05dd52dc2f06bd77fb318c784c4b44e3acfba81338881";
|
||||
sha256 = "2c8d9cf174d7f66401a5deb104b96375f3877b6c768568705f700faf3adbf448";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six click requests pytz tabulate ];
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, hypothesis, mypy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "algebraic-data-types";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jspahrsummers";
|
||||
repo = "adt";
|
||||
rev = "v" + version;
|
||||
sha256 = "1py94jsgh6wch59n9dxnwvk74psbpa1679zfmripa1qfc2218kqi";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
mypy
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Algebraic data types for Python";
|
||||
homepage = https://github.com/jspahrsummers/adt;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ uri-canva ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "allpairspy";
|
||||
version = "2.4.3";
|
||||
version = "2.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8ce160db245375a5ccf0831be77cd98394f514c1b3501ddff5f8edb780ee1748";
|
||||
sha256 = "9358484c91abe74ba18daf9d6d6904c5be7cc8818397d05248c9d336023c28b1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||
{ stdenv, lib, buildPythonPackage, python, fetchFromGitHub, isPy3k
|
||||
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
|
||||
, service-identity
|
||||
, gnupg ? null, sphinx, awk ? null, procps ? null, future ? null
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alot";
|
||||
version = "0.8";
|
||||
version = "0.8.1";
|
||||
outputs = [ "out" ] ++ lib.optional withManpage "man";
|
||||
|
||||
disabled = !isPy3k;
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
owner = "pazz";
|
||||
repo = "alot";
|
||||
rev = version;
|
||||
sha256 = "1isn0p0i2a7dlbrdk5ib01xa1wgi6bi9ka4xl4vj8iw1q4i5fqv9";
|
||||
sha256 = "1gzis6w45d860mr2qbmjhnbrhy6d9xwhw27wpmvs56vndafvv9d3";
|
||||
};
|
||||
|
||||
nativeBuildInputs = lib.optional withManpage sphinx;
|
||||
@@ -39,7 +39,9 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ awk future mock gnupg procps ];
|
||||
|
||||
postInstall = lib.optionalString withManpage ''
|
||||
postInstall = let
|
||||
completionPython = python.withPackages (ps: [ ps.configobj ]);
|
||||
in lib.optionalString withManpage ''
|
||||
mkdir -p $out/man
|
||||
cp -r docs/build/man $out/man
|
||||
''
|
||||
@@ -47,6 +49,8 @@ buildPythonPackage rec {
|
||||
mkdir -p $out/share/{applications,alot}
|
||||
cp -r extra/themes $out/share/alot
|
||||
|
||||
substituteInPlace extra/completion/alot-completion.zsh \
|
||||
--replace "python3" "${completionPython.interpreter}"
|
||||
install -D extra/completion/alot-completion.zsh $out/share/zsh/site-functions/_alot
|
||||
|
||||
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
|
||||
@@ -57,6 +61,6 @@ buildPythonPackage rec {
|
||||
description = "Terminal MUA using notmuch mail";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ geistesk ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
||||
, entrypoints
|
||||
, glibcLocales
|
||||
, ipython
|
||||
@@ -18,11 +18,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "altair";
|
||||
version = "3.2.0";
|
||||
version = "4.0.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "098macm0sw54xqijdy1c8cppcgw79wn52qdc71qqb51nibc17gls";
|
||||
sha256 = "92dcd7b84c715f8e02bbdf37e36193a4af8138b5b064c05f237e6ed41573880a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "amqp";
|
||||
version = "2.5.0";
|
||||
version = "2.5.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1j1046gcriidsfha0hvrw6hwcm0wrhbvg0prjjji5inaadyzidnb";
|
||||
sha256 = "77f1aef9410698d20eaeac5b73a87817365f457a507d82edf292e12cbb83b08d";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest case pytest-sugar ];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aniso8601";
|
||||
version = "7.0.0";
|
||||
version = "8.0.0";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Parses ISO 8601 strings.";
|
||||
@@ -17,6 +17,6 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "07jgf55yq2j2q76gaj3hakflnxg8yfkarzvrmq33i1dp6xk2ngai";
|
||||
sha256 = "529dcb1f5f26ee0df6c0a1ee84b7b27197c3c50fc3a6321d66c544689237d072";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, h5py
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.15.2";
|
||||
version = "1.16.3";
|
||||
pname = "annoy";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1i5bkf8mwd1pyrbhfwncir2r8yq8s9qz5j13vv2qz92n9g57sr3m";
|
||||
sha256 = "fe2779664bd8846f2d67191a7e6010b8df890ac4586336748fd0697f31654379";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ h5py ];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
23
pkgs/development/python-modules/ansi2html/default.nix
Normal file
23
pkgs/development/python-modules/ansi2html/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, nose, setuptools }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansi2html";
|
||||
version = "1.5.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1a9vihsvd03hb0a4dbiklyy686adp9q2ipl79mkxmdr6gfp8bbln";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six setuptools ];
|
||||
|
||||
checkInputs = [ mock nose ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert text with ANSI color codes to HTML";
|
||||
homepage = https://github.com/ralphbean/ansi2html;
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ davidtwco ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -11,13 +11,15 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-lint";
|
||||
version = "4.1.0";
|
||||
version = "4.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9430ea6e654ba4bf5b9c6921efc040f46cda9c4fd2896a99ff71d21037bcb123";
|
||||
sha256 = "eb925d8682d70563ccb80e2aca7b3edf84fb0b768cea3edc6846aac7abdc414a";
|
||||
};
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ];
|
||||
checkInputs = [ nose ];
|
||||
@@ -31,10 +33,11 @@ buildPythonPackage rec {
|
||||
# give a hint to setuptools_scm on package version
|
||||
preBuild = ''
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
PATH=$out/bin:$PATH HOME=$(mktemp -d) nosetests test
|
||||
PATH=$out/bin:$PATH nosetests test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
@@ -42,5 +45,6 @@ buildPythonPackage rec {
|
||||
description = "Best practices checker for Ansible";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.sengaya ];
|
||||
broken = true; # requires new flit to build
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-runner";
|
||||
version = "1.3.4";
|
||||
version = "1.4.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "087jk00kv0qsqqspyn015nicvbl627wck3fgx2qhqawvrgqk3xb0";
|
||||
sha256 = "e6ccb7ccf9bab9c49a391db37e0d399ba0e73f969801ae35ff74020bfd4fc346";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
@@ -6,29 +6,31 @@
|
||||
, jinja2
|
||||
, pyyaml
|
||||
, httplib2
|
||||
, boto
|
||||
, six
|
||||
, netaddr
|
||||
, dnspython
|
||||
, jmespath
|
||||
, dopy
|
||||
, ncclient
|
||||
, windowsSupport ? false
|
||||
, pywinrm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.8.4";
|
||||
version = "2.8.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ansible";
|
||||
repo = "ansible";
|
||||
rev = "v${version}";
|
||||
sha256 = "1fp7zz8awfv70nn8i6x0ggx4472377hm7787x16qv2kz4nb069ki";
|
||||
sha256 = "08vqjk85j0g1x0iad03d7ysws433dikii8j2lr3a1mlx6d186vv8";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
||||
# ansible-connection is wrapped, so make sure it's not passed
|
||||
# through the python interpreter.
|
||||
sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
@@ -38,8 +40,8 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pycrypto paramiko jinja2 pyyaml httplib2 boto
|
||||
six netaddr dnspython jmespath dopy
|
||||
pycrypto paramiko jinja2 pyyaml httplib2
|
||||
six netaddr dnspython jmespath dopy ncclient
|
||||
] ++ lib.optional windowsSupport pywinrm;
|
||||
|
||||
# dificult to test
|
||||
|
||||
44
pkgs/development/python-modules/ansiwrap/default.nix
Normal file
44
pkgs/development/python-modules/ansiwrap/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, tox
|
||||
, pytest
|
||||
, ansicolors
|
||||
, coverage
|
||||
, pytestcov
|
||||
, textwrap3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansiwrap";
|
||||
version = "0.8.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
tox
|
||||
pytest
|
||||
ansicolors
|
||||
coverage
|
||||
pytestcov
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
textwrap3
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Textwrap, but savvy to ANSI colors and styles";
|
||||
homepage = https://github.com/jonathaneunice/ansiwrap;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -1,18 +1,21 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
|
||||
{ lib, buildPythonPackage, isPy3k, python
|
||||
, antlr4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "antlr4-python2-runtime";
|
||||
version = "4.7.2";
|
||||
inherit (antlr4.runtime.cpp) version src;
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "04ljic5wnqpizln8q3c78pqrckz6q5nb433if00j1mlyv2yja22q";
|
||||
};
|
||||
sourceRoot = "source/runtime/Python2";
|
||||
|
||||
meta = {
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/TestTokenStreamRewriter.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Runtime for ANTLR";
|
||||
homepage = "https://www.antlr.org/";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
|
||||
{ lib, buildPythonPackage, isPy3k, python
|
||||
, antlr4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "antlr4-python3-runtime";
|
||||
version = "4.7.2";
|
||||
inherit (antlr4.runtime.cpp) version src;
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02xm7ccsf51vh4xsnhlg6pvchm1x3ckgv9kwm222w5drizndr30n";
|
||||
};
|
||||
sourceRoot = "source/runtime/Python3";
|
||||
|
||||
meta = {
|
||||
checkPhase = ''
|
||||
cd test
|
||||
${python.interpreter} ctest.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Runtime for ANTLR";
|
||||
homepage = "https://www.antlr.org/";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,36 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, fetchpatch
|
||||
, nose
|
||||
, six
|
||||
, withGraphviz ? true
|
||||
, graphviz
|
||||
, fontconfig
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anytree";
|
||||
version = "2.6.0";
|
||||
version = "2.7.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "c0fec0de";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1k3yj9h3ssjlz57r4g1qzxvprxjp7n92vms9fv0d46pigylxm5i3";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "05736hamjv4f38jw6z9y4wckc7mz18ivbizm1s3pb0n6fp1sy4zk";
|
||||
};
|
||||
|
||||
patches = [
|
||||
patches = lib.optionals withGraphviz [
|
||||
(substituteAll {
|
||||
src = ./graphviz.patch;
|
||||
inherit graphviz;
|
||||
})
|
||||
# Fix tests python3.7
|
||||
# See: https://github.com/c0fec0de/anytree/pull/85
|
||||
(fetchpatch {
|
||||
url = "https://github.com/c0fec0de/anytree/commit/dd1b3d325546fef7436711e4cfea9a5fb61daaf8.patch";
|
||||
sha256 = "1dpa2jh2kakfaapnqrz03frb67q5fwxzc8c70i6nv1b01i9xw0bn";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
@@ -41,11 +34,14 @@ buildPythonPackage rec {
|
||||
six
|
||||
];
|
||||
|
||||
# Fontconfig error: Cannot load default config file
|
||||
preCheck = ''
|
||||
# tests print “Fontconfig error: Cannot load default config file”
|
||||
preCheck = lib.optionalString withGraphviz ''
|
||||
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
|
||||
'';
|
||||
|
||||
# circular dependency anytree → graphviz → pango → glib → gtk-doc → anytree
|
||||
doCheck = withGraphviz;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
|
||||
188
pkgs/development/python-modules/apache-airflow/default.nix
Normal file
188
pkgs/development/python-modules/apache-airflow/default.nix
Normal file
@@ -0,0 +1,188 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, alembic
|
||||
, cached-property
|
||||
, configparser
|
||||
, colorlog
|
||||
, croniter
|
||||
, dill
|
||||
, flask
|
||||
, flask-appbuilder
|
||||
, flask-admin
|
||||
, flask-caching
|
||||
, flask_login
|
||||
, flask-swagger
|
||||
, flask_wtf
|
||||
, flask-bcrypt
|
||||
, funcsigs
|
||||
, future
|
||||
, GitPython
|
||||
, gunicorn
|
||||
, iso8601
|
||||
, json-merge-patch
|
||||
, jinja2
|
||||
, ldap3
|
||||
, lxml
|
||||
, lazy-object-proxy
|
||||
, markdown
|
||||
, pandas
|
||||
, pendulum
|
||||
, psutil
|
||||
, pygments
|
||||
, python-daemon
|
||||
, python-dateutil
|
||||
, requests
|
||||
, setproctitle
|
||||
, snakebite
|
||||
, sqlalchemy
|
||||
, tabulate
|
||||
, tenacity
|
||||
, termcolor
|
||||
, text-unidecode
|
||||
, thrift
|
||||
, tzlocal
|
||||
, unicodecsv
|
||||
, werkzeug
|
||||
, zope_deprecation
|
||||
, enum34
|
||||
, typing
|
||||
, nose
|
||||
, python
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apache-airflow";
|
||||
version = "1.10.5";
|
||||
disabled = (!isPy3k);
|
||||
|
||||
src = fetchFromGitHub rec {
|
||||
owner = "apache";
|
||||
repo = "airflow";
|
||||
rev = version;
|
||||
sha256 = "14fmhfwx977c9jdb2kgm93i6acx43l45ggj30rb37r68pzpb6l6h";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Not yet accepted: https://github.com/apache/airflow/pull/6562
|
||||
(fetchpatch {
|
||||
name = "avoid-warning-from-abc.collections";
|
||||
url = https://patch-diff.githubusercontent.com/raw/apache/airflow/pull/6562.patch;
|
||||
sha256 = "0swpay1qlb7f9kgc56631s1qd9k82w4nw2ggvkm7jvxwf056k61z";
|
||||
})
|
||||
# Not yet accepted: https://github.com/apache/airflow/pull/6561
|
||||
(fetchpatch {
|
||||
name = "pendulum2-compatibility";
|
||||
url = https://patch-diff.githubusercontent.com/raw/apache/airflow/pull/6561.patch;
|
||||
sha256 = "17hw8qyd4zxvib9zwpbn32p99vmrdz294r31gnsbkkcl2y6h9knk";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
alembic
|
||||
cached-property
|
||||
colorlog
|
||||
configparser
|
||||
croniter
|
||||
dill
|
||||
flask
|
||||
flask-admin
|
||||
flask-appbuilder
|
||||
flask-bcrypt
|
||||
flask-caching
|
||||
flask_login
|
||||
flask-swagger
|
||||
flask_wtf
|
||||
funcsigs
|
||||
future
|
||||
GitPython
|
||||
gunicorn
|
||||
iso8601
|
||||
json-merge-patch
|
||||
jinja2
|
||||
ldap3
|
||||
lxml
|
||||
lazy-object-proxy
|
||||
markdown
|
||||
pandas
|
||||
pendulum
|
||||
psutil
|
||||
pygments
|
||||
python-daemon
|
||||
python-dateutil
|
||||
requests
|
||||
setproctitle
|
||||
sqlalchemy
|
||||
tabulate
|
||||
tenacity
|
||||
termcolor
|
||||
text-unidecode
|
||||
thrift
|
||||
tzlocal
|
||||
unicodecsv
|
||||
werkzeug
|
||||
zope_deprecation
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
snakebite
|
||||
nose
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
||||
substituteInPlace setup.py \
|
||||
--replace "flask>=1.1.0, <2.0" "flask" \
|
||||
--replace "flask-caching>=1.3.3, <1.4.0" "flask-caching" \
|
||||
--replace "flask-appbuilder>=1.12.5, <2.0.0" "flask-appbuilder" \
|
||||
--replace "pendulum==1.4.4" "pendulum" \
|
||||
--replace "cached_property~=1.5" "cached_property" \
|
||||
--replace "dill>=0.2.2, <0.3" "dill" \
|
||||
--replace "configparser>=3.5.0, <3.6.0" "configparser" \
|
||||
--replace "jinja2>=2.7.3, <=2.10.0" "jinja2" \
|
||||
--replace "funcsigs==1.0.0" "funcsigs" \
|
||||
--replace "flask-swagger==0.2.13" "flask-swagger" \
|
||||
--replace "python-daemon>=2.1.1, <2.2" "python-daemon" \
|
||||
--replace "alembic>=0.9, <1.0" "alembic" \
|
||||
--replace "markdown>=2.5.2, <3.0" "markdown" \
|
||||
--replace "future>=0.16.0, <0.17" "future" \
|
||||
--replace "tenacity==4.12.0" "tenacity" \
|
||||
--replace "text-unidecode==1.2" "text-unidecode" \
|
||||
--replace "tzlocal>=1.4,<2.0.0" "tzlocal" \
|
||||
--replace "sqlalchemy~=1.3" "sqlalchemy" \
|
||||
--replace "werkzeug>=0.14.1, <0.15.0" "werkzeug"
|
||||
|
||||
# dumb-init is only needed for CI and Docker, not relevant for NixOS.
|
||||
substituteInPlace setup.py \
|
||||
--replace "'dumb-init>=1.2.2'," ""
|
||||
|
||||
substituteInPlace tests/core.py \
|
||||
--replace "/bin/bash" "${stdenv.shell}"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
export HOME=$(mktemp -d)
|
||||
export AIRFLOW_HOME=$HOME
|
||||
export AIRFLOW__CORE__UNIT_TEST_MODE=True
|
||||
export AIRFLOW_DB="$HOME/airflow.db"
|
||||
export PATH=$PATH:$out/bin
|
||||
|
||||
airflow version
|
||||
airflow initdb
|
||||
airflow resetdb -y
|
||||
nosetests tests.core.CoreTest
|
||||
## all tests
|
||||
# nosetests --cover-package=airflow
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Programmatically author, schedule and monitor data pipelines";
|
||||
homepage = http://airflow.apache.org/;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc maintainers.ingenieroariel ];
|
||||
};
|
||||
}
|
||||
36
pkgs/development/python-modules/apispec/default.nix
Normal file
36
pkgs/development/python-modules/apispec/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pyyaml
|
||||
, prance
|
||||
, marshmallow
|
||||
, pytestCheckHook
|
||||
, mock
|
||||
, openapi-spec-validator
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apispec";
|
||||
version = "3.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "24b8490c22310b0779a058ccb24ec2fef33d571bb5aba1f525ab5963b0eabcdd";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pyyaml
|
||||
prance
|
||||
openapi-spec-validator
|
||||
marshmallow
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification";
|
||||
homepage = https://github.com/marshmallow-code/apispec;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-application";
|
||||
version = "2.0.2";
|
||||
version = "2.7.0";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchdarcs {
|
||||
url = "http://devel.ag-projects.com/repositories/${pname}";
|
||||
rev = "release-${version}";
|
||||
sha256 = "19dszv44py8qrq0jcjdycxpa7z2p8hi3ijq9gnqdsazbbjzf9svn";
|
||||
sha256 = "1xpyk2v3naxkjhpyris58dxg1lxbraxgjd6f7w1sah5j0sk7psla";
|
||||
};
|
||||
|
||||
buildInputs = [ zope_interface ];
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, Babel, decorator, requests, requests_oauthlib, six, click, markdown, pyyaml
|
||||
, Babel, requests, requests_oauthlib, six, click, markdown, pyyaml
|
||||
, pytestrunner, coverage, flake8, mock, pytest, pytestcov, tox
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apprise";
|
||||
version = "0.7.9";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zqnk255d311ibird08sv0c21fw1r1xhldhyx5lnl3ji1xkv9173";
|
||||
sha256 = "0m0pddqrpfm526f0fyzzjpcp7hi3d6pj0bgk2vl004lkas4li1hw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ Babel ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
decorator requests requests_oauthlib six click markdown pyyaml
|
||||
requests requests_oauthlib six click markdown pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy37, pyperclip }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.2.4";
|
||||
version = "0.2.6";
|
||||
pname = "approvaltests";
|
||||
|
||||
# no tests included in PyPI tarball
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
owner = "approvals";
|
||||
repo = "ApprovalTests.Python";
|
||||
rev = version;
|
||||
sha256 = "05lj5i13zpkgw1wdc1v81wj4zqj8bpzqiwycdnwlg08azcy7k7j1";
|
||||
sha256 = "1k1bj8q1qm89a8xm4az6qk4qswwmgxw5jpdjcxmf93zh5hrcy9h9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyperclip ];
|
||||
@@ -19,16 +19,6 @@ buildPythonPackage rec {
|
||||
--replace "pyperclip==1.5.27" "pyperclip>=1.5.27"
|
||||
'';
|
||||
|
||||
# Tests fail on Python 3.7
|
||||
# https://github.com/approvals/ApprovalTests.Python/issues/36
|
||||
doCheck = !isPy37;
|
||||
|
||||
# Disable Linux failing test, because tries to use darwin/windows specific reporters
|
||||
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace tests/test_genericdiffreporter.py \
|
||||
--replace "test_find_working_reporter" "_find_working_reporter"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Assertion/verification library to aid testing";
|
||||
homepage = https://github.com/approvals/ApprovalTests.Python;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch
|
||||
, sqlite, isPyPy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apsw";
|
||||
version = "3.22.0-r1";
|
||||
version = "3.30.1-r1";
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
owner = "rogerbinns";
|
||||
repo = "apsw";
|
||||
rev = version;
|
||||
sha256 = "02ldvshcgr4c7c8anp4flfnw8g8ys5bflkb8b51rb618qxhhwyak";
|
||||
sha256 = "1zp38gj44bmzfxxpvgd7nixkp8vs2fpl839ag8vrh9z70dax22f0";
|
||||
};
|
||||
|
||||
buildInputs = [ sqlite ];
|
||||
|
||||
20
pkgs/development/python-modules/area/default.nix
Normal file
20
pkgs/development/python-modules/area/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "area";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "18k5hwmlxhajlq306zxndsglb11vv8vd4vpmwx8dpvfxd1kbksya";
|
||||
};
|
||||
|
||||
# tests not working on the package from pypi
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox’s geojson-area for Python.";
|
||||
homepage = "https://github.com/scisco/area";
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
}
|
||||
38
pkgs/development/python-modules/aresponses/default.nix
Normal file
38
pkgs/development/python-modules/aresponses/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
# propagatedBuildInputs
|
||||
, aiohttp
|
||||
# buildInputs
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aresponses";
|
||||
version = "1.1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "20a63536d86af6f31f9b0720c561bdc595b6bfe071940e347ab58b11caff9e1b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytest
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
# tests only distributed via git repository, not pypi
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asyncio testing server";
|
||||
homepage = "https://github.com/circleup/aresponses";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.makefu ];
|
||||
};
|
||||
}
|
||||
@@ -3,11 +3,11 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "argcomplete";
|
||||
version = "1.10.0";
|
||||
version = "1.10.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hdysr9z28sgwv47mivf4iyr1sg19hgfz349dghgdlk3rkl6v0s5";
|
||||
sha256 = "a37f522cf3b6a34abddfedb61c4546f60023b3799b22d1cd971eacdc0861530a";
|
||||
};
|
||||
|
||||
doCheck = false; # bash-completion test fails with "compgen: command not found".
|
||||
|
||||
@@ -12,11 +12,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "argon2_cffi";
|
||||
version = "19.1.0";
|
||||
version = "19.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "81548a27b919861040cb928a350733f4f9455dd67c7d1ba92eb5960a1d7f8b26";
|
||||
pname = "argon2-cffi";
|
||||
inherit version;
|
||||
sha256 = "ffaa623eea77b497ffbdd1a51e941b33d3bf552c60f14dbee274c4070677bda3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34;
|
||||
|
||||
@@ -2,21 +2,31 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, glibcLocales
|
||||
, pytestrunner
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Arpeggio";
|
||||
version = "1.9.0";
|
||||
version = "1.9.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a5258b84f76661d558492fa87e42db634df143685a0e51802d59cae7daad8732";
|
||||
sha256 = "948ce06163a48a72c97f4fe79ad3d1c1330b6fec4f22ece182fb60ef60bd022b";
|
||||
};
|
||||
|
||||
# Shall not be needed for next release
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [ "test_examples" "test_issue_22" ];
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Packrat parser interpreter";
|
||||
license = lib.licenses.mit;
|
||||
|
||||
25
pkgs/development/python-modules/arrayqueues/default.nix
Normal file
25
pkgs/development/python-modules/arrayqueues/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, pkgs, buildPythonPackage, fetchPypi, isPy3k
|
||||
, numpy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "arrayqueues";
|
||||
version = "1.2.0b0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1gvrxb2rw0dk469wq5azylar7hhanfp07gl5mc6ajdbgz9gsd6ln";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/portugueslab/arrayqueues";
|
||||
description = "Multiprocessing queues for numpy arrays using shared memory";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ tbenst ];
|
||||
};
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, nose, chai, simplejson, backports_functools_lru_cache
|
||||
, dateutil, pytz
|
||||
, dateutil, pytz, mock, dateparser
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "arrow";
|
||||
version = "0.13.2";
|
||||
version = "0.15.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "82dd5e13b733787d4eb0fef42d1ee1a99136dc1d65178f70373b3678b3181bfc";
|
||||
sha256 = "e1a318a4c0b787833ae46302c02488b6eeef413c6a13324b3261ad320f21ec1e";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
checkInputs = [ nose chai simplejson pytz ];
|
||||
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
|
||||
propagatedBuildInputs = [ dateutil backports_functools_lru_cache mock dateparser];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "==1.2.1" ""
|
||||
|
||||
80
pkgs/development/python-modules/arviz/default.nix
Normal file
80
pkgs/development/python-modules/arviz/default.nix
Normal file
@@ -0,0 +1,80 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, emcee
|
||||
, matplotlib
|
||||
, netcdf4
|
||||
, numba
|
||||
, numpy
|
||||
, pandas
|
||||
, pytest
|
||||
, scipy
|
||||
, setuptools
|
||||
, tensorflow-probability
|
||||
, xarray
|
||||
#, h5py (used by disabled tests)
|
||||
#, pymc3 (broken)
|
||||
#, pyro-ppl (broken)
|
||||
#, pystan (not packaged)
|
||||
#, numpyro (not packaged)
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "arviz";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "arviz-devs";
|
||||
repo = "arviz";
|
||||
rev = version;
|
||||
sha256 = "0p600cakix24wz2ridnzy6sp3l1p2kr5s60qc7s82wpv7fw0i9ry";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# needed to install
|
||||
matplotlib
|
||||
netcdf4
|
||||
pandas
|
||||
xarray
|
||||
# needed to import
|
||||
setuptools
|
||||
# not needed to import, but used by many functions
|
||||
# and is listed as a dependency in the documentation
|
||||
numpy
|
||||
scipy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
emcee
|
||||
numba
|
||||
pytest
|
||||
tensorflow-probability
|
||||
#h5py (used by disabled tests)
|
||||
#pymc3 (broken)
|
||||
#pyro-ppl (broken)
|
||||
#pystan (not packaged)
|
||||
#numpyro (not packaged)
|
||||
];
|
||||
|
||||
# check requires pymc3 and pyro-ppl, which are currently broken, and pystan
|
||||
# and numpyro, which are not yet packaged, some checks also need to make
|
||||
# directories and do not have permission to do so. So we can only check part
|
||||
# of the package
|
||||
# Additionally, there are some failures with the plots test, which revolve
|
||||
# around attempting to output .mp4 files through an interface that only wants
|
||||
# to output .html files.
|
||||
# The following test have been disabled as a result: data_cmdstanpy,
|
||||
# data_numpyro, data_pyro, data_pystan, and plots.
|
||||
checkPhase = ''
|
||||
cd arviz/tests/
|
||||
HOME=$TMPDIR pytest test_{data_cmdstan,data_emcee,data,data_tfp,\
|
||||
diagnostics,plot_utils,rcparams,stats,stats_utils,utils}.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "ArviZ is a Python package for exploratory analysis of Bayesian models";
|
||||
homepage = "https://arviz-devs.github.io/arviz/";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.omnipotententity ];
|
||||
};
|
||||
}
|
||||
@@ -9,18 +9,26 @@
|
||||
, numpy
|
||||
, isPy27
|
||||
, astropy
|
||||
, setuptools_scm
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asdf";
|
||||
version = "2.3.3";
|
||||
version = "2.4.2";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d02e936a83abd206e7bc65050d94e8848da648344dbec9e49dddc2bdc3bd6870";
|
||||
sha256 = "1wlgx8469wwsczc2gjka9k1a03yzird67zg3va0kg8y6j1qmbwvg";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "semantic_version>=2.3.1,<=2.6.0" "semantic_version>=2.3.1" \
|
||||
--replace "doctest_plus = enabled" ""
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytest-astropy
|
||||
astropy
|
||||
@@ -32,6 +40,8 @@ buildPythonPackage rec {
|
||||
jsonschema
|
||||
six
|
||||
numpy
|
||||
setuptools_scm
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ase";
|
||||
version = "3.18.0";
|
||||
version = "3.19.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ycp1yksysiiz902gn762030sfmirxm950pwpw2rcrpjvq95zm1r";
|
||||
sha256 = "a8378ab57e91cfe1ba09b3639d8409bb7fc1a40b59479c7822d206e673ad93f9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
||||
buildPythonPackage rec {
|
||||
version = "3.2.1";
|
||||
version = "3.2.2";
|
||||
pname = "asgiref";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
owner = "django";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16wb137dvnjmbmshy4r9vgsfjc4g8d6l527aj9d5vszyk5x5fm7d";
|
||||
sha256 = "11lnynspgdi5zp3hd8piy8h9fq0s3ck6lzyl7h0fn2mxxyx83yh2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ async-timeout ];
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asn1crypto";
|
||||
version = "0.24.0";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49";
|
||||
sha256 = "0bf4xxaig0b9dv6njynaqk2j7vlpagh3y49s9qj95y0jvjw5q8as";
|
||||
};
|
||||
|
||||
# No tests included
|
||||
|
||||
@@ -1,21 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, fetchpatch }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astor";
|
||||
version = "0.8.0";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qkq5bf13fqcwablg0nk7rx83izxdizysd42n26j5wbingcfx9ip";
|
||||
sha256 = "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka";
|
||||
};
|
||||
|
||||
# disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
py.test -k 'not check_expressions and not check_astunparse and not test_convert_stdlib and not test_codegen_as_submodule and not test_codegen_from_root'
|
||||
py.test -k 'not check_expressions \
|
||||
and not check_astunparse \
|
||||
and not test_convert_stdlib \
|
||||
and not test_codegen_as_submodule \
|
||||
and not test_positional_only_arguments \
|
||||
and not test_codegen_from_root'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Library for reading, writing and rewriting python AST";
|
||||
homepage = https://github.com/berkerpeksag/astor;
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astroid";
|
||||
version = "2.2.5";
|
||||
version = "2.3.3";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1x5c8fiqa18frwwfdsw41lpqsyff3w4lxvjx9d5ccs4zfkhy2q35";
|
||||
sha256 = "71ea07f44df9568a75d0f354c49143a4575d90645e9fead6dfb52c26a85ed13a";
|
||||
};
|
||||
|
||||
# From astroid/__pkginfo__.py
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astropy-healpix";
|
||||
version = "0.4";
|
||||
version = "0.5";
|
||||
|
||||
doCheck = false; # tests require pytest-astropy
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8c9709ac923759c92eca6d2e623e734d0f417eed40ba835b77d99dec09e51aa2";
|
||||
sha256 = "1bfdq33mj6mwk5fkc6n23f9bc9z8j7kmvql3zchz4h58jskmvqas";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy astropy astropy-helpers ];
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astropy-helpers";
|
||||
version = "3.2.1";
|
||||
version = "4.0.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1klxyfvl9hbhy37n1z3mb0vm5pmd7hbsnzhjkvigz3647hmfzva6";
|
||||
sha256 = "f1096414d108778218d6bea06d4d9c7b2ff7c83856a451331ac194e74de9f413";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astropy";
|
||||
version = "3.2.1";
|
||||
version = "4.0";
|
||||
|
||||
disabled = !isPy3k; # according to setup.py
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "706c0457789c78285e5464a5a336f5f0b058d646d60f4e5f5ba1f7d5bf424b28";
|
||||
sha256 = "404200e0baa84de09ac563ad9ccab3817e9b9669d0025cee74a8752f4bc2771b";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ astropy-helpers ];
|
||||
@@ -39,6 +39,9 @@ buildPythonPackage rec {
|
||||
pytest
|
||||
'';
|
||||
|
||||
# 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Astronomy/Astrophysics library for Python";
|
||||
homepage = https://www.astropy.org;
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
diff -ruN astroquery-0.3.9.orig/astroquery/conftest.py astroquery-0.3.9/astroquery/conftest.py
|
||||
--- astroquery-0.3.9.orig/astroquery/conftest.py 2018-11-27 14:51:16.000000000 +0100
|
||||
+++ astroquery-0.3.9/astroquery/conftest.py 2019-07-23 18:19:17.000000000 +0200
|
||||
@@ -5,15 +5,20 @@
|
||||
# by importing them here in conftest.py they are discoverable by py.test
|
||||
# no matter how it is invoked within the source tree.
|
||||
|
||||
-from astropy.tests.pytest_plugins import (PYTEST_HEADER_MODULES,
|
||||
- enable_deprecations_as_exceptions,
|
||||
- TESTED_VERSIONS)
|
||||
+from astropy.version import version as astropy_version
|
||||
|
||||
-try:
|
||||
- packagename = os.path.basename(os.path.dirname(__file__))
|
||||
- TESTED_VERSIONS[packagename] = version.version
|
||||
-except NameError:
|
||||
- pass
|
||||
+if astropy_version < '3.0':
|
||||
+ # With older versions of Astropy, we actually need to import the pytest
|
||||
+ # plugins themselves in order to make them discoverable by pytest.
|
||||
+ from astropy.tests.pytest_plugins import *
|
||||
+else:
|
||||
+ # As of Astropy 3.0, the pytest plugins provided by Astropy are
|
||||
+ # automatically made available when Astropy is installed. This means it's
|
||||
+ # not necessary to import them here, but we still need to import global
|
||||
+ # variables that are used for configuration.
|
||||
+ from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
|
||||
+
|
||||
+from astropy.tests.helper import enable_deprecations_as_exceptions
|
||||
|
||||
# Add astropy to test header information and remove unused packages.
|
||||
# Pytest header customisation was introduced in astropy 1.0.
|
||||
@@ -36,12 +41,17 @@
|
||||
# The warnings_to_ignore_by_pyver parameter was added in astropy 2.0
|
||||
enable_deprecations_as_exceptions(modules_to_ignore_on_import=['requests'])
|
||||
|
||||
+# add '_testrun' to the version name so that the user-agent indicates that
|
||||
+# it's being run in a test
|
||||
+from . import version
|
||||
+version.version += '_testrun'
|
||||
+
|
||||
+
|
||||
# This is to figure out the affiliated package version, rather than
|
||||
# using Astropy's
|
||||
-try:
|
||||
- from .version import version
|
||||
-except ImportError:
|
||||
- version = 'dev'
|
||||
+from .version import version, astropy_helpers_version
|
||||
+
|
||||
|
||||
packagename = os.path.basename(os.path.dirname(__file__))
|
||||
TESTED_VERSIONS[packagename] = version
|
||||
+TESTED_VERSIONS['astropy_helpers'] = astropy_helpers_version
|
||||
@@ -13,17 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astroquery";
|
||||
version = "0.3.9";
|
||||
version = "0.3.10";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zw3xp2rfc6h2v569iqsyvzhfnzp7bfjb7jrj61is1hrqw1cqjrb";
|
||||
sha256 = "1ce57a8792c7d5d74206d797d379de6da35d56be433ea5840c41a49f202e2fab";
|
||||
};
|
||||
|
||||
# Fix tests using conftest.py from HEAD in the upstream GitHub
|
||||
# repository.
|
||||
patches = [ ./conftest-astropy-3-fix.patch ];
|
||||
|
||||
propagatedBuildInputs = [ astropy requests keyring beautifulsoup4 html5lib ];
|
||||
|
||||
nativeBuildInputs = [ astropy-helpers ];
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astunparse";
|
||||
version = "1.6.2";
|
||||
version = "1.6.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "dab3e426715373fd76cd08bb1abe64b550f5aa494cf1e32384f26fd60961eb67";
|
||||
sha256 = "5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six wheel ];
|
||||
|
||||
@@ -3,21 +3,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asyncpg";
|
||||
version = "0.18.3";
|
||||
version = "0.20.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rrch478ww6ipmh3617sb2jzwsq4w7pjcck869p35zb0mk5fr9aq";
|
||||
sha256 = "0yjszgg1zbbsfxj1gv17ymc2hcfvymkvg69dvpvwy0dqspjxq0ma";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/MagicStack/asyncpg/commit/aaeb7076e5acb045880b46155014c0640624797e.patch";
|
||||
sha256 = "0r6g6pvb39vzci8g67mv9rlrvavqvfz6vlv8988wv53bpz1mss3p";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
uvloop
|
||||
postgresql
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asyncssh";
|
||||
version = "1.17.1";
|
||||
version = "2.1.0";
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0gyqms4zs9j9k7dgy24va4w42vf20x75yx9jvsds0sg42mqlkd5v";
|
||||
sha256 = "19d0b4c65115d09b42ed21c748884157babfb3055a6e130ea349dfdcbcef3380";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -1,34 +1,33 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, xmltodict
|
||||
, datamodeldict
|
||||
, numpy
|
||||
, matplotlib
|
||||
, scipy
|
||||
, pandas
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, cython
|
||||
, datamodeldict
|
||||
, matplotlib
|
||||
, numericalunits
|
||||
, numpy
|
||||
, pandas
|
||||
, pytest
|
||||
, scipy
|
||||
, toolz
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.2.6";
|
||||
version = "1.3.0";
|
||||
pname = "atomman";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "19501bfdf7e66090764a0ccbecf85a128b46333ea232c2137fa4345512b8b502";
|
||||
src = fetchFromGitHub {
|
||||
owner = "usnistgov";
|
||||
repo = "atomman";
|
||||
rev = "v${version}";
|
||||
sha256 = "09pfykd96wmw00s3kgabghykjn8b4yjml4ybpi7kwy7ygdmzcx51";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits ];
|
||||
|
||||
# tests not included with Pypi release
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits toolz ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
py.test tests -k 'not test_atomic'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "attrs";
|
||||
version = "18.2.0";
|
||||
version = "19.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69";
|
||||
sha256 = "f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72";
|
||||
};
|
||||
|
||||
# macOS needs clang for testing
|
||||
|
||||
@@ -4,21 +4,22 @@
|
||||
, bitstruct
|
||||
, more-itertools
|
||||
, pprintpp
|
||||
, tbm-utils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "audio-metadata";
|
||||
version = "0.4.0";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a881f0f3b82752d306ac0a7850ed0e31bad275a399f63097733b4890986084b2";
|
||||
sha256 = "7a0c060d05ac59a4ce841a485808fe8a6993fec554f96bee90e57e971c73a2a6";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "bidict>=0.17,<0.18" "bidict" \
|
||||
--replace "more-itertools>=4.0,<5.0" "more-itertools"
|
||||
--replace "more-itertools>=4.0,<8.0" "more-itertools"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -27,6 +28,7 @@ buildPythonPackage rec {
|
||||
bitstruct
|
||||
more-itertools
|
||||
pprintpp
|
||||
tbm-utils
|
||||
];
|
||||
|
||||
# No tests
|
||||
|
||||
35
pkgs/development/python-modules/authlib/default.nix
Normal file
35
pkgs/development/python-modules/authlib/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, mock
|
||||
, cryptography
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.13";
|
||||
pname = "authlib";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lepture";
|
||||
repo = "authlib";
|
||||
rev = "v${version}";
|
||||
sha256 = "1nv0jbsaqr9qjn7nnl55s42iyx655k7fsj8hs69652lqnfn5y3d5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cryptography requests ];
|
||||
|
||||
checkInputs = [ mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/lepture/authlib;
|
||||
description = "The ultimate Python library in building OAuth and OpenID Connect servers. JWS,JWE,JWK,JWA,JWT included.";
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
@@ -4,11 +4,11 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "autobahn";
|
||||
version = "19.8.1";
|
||||
version = "19.11.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "294e7381dd54e73834354832604ae85567caf391c39363fed0ea2bfa86aa4304";
|
||||
sha256 = "201b9879b49c6e259d4126dbafe9e3c73807de0c242d50065fbebc62c6ccb181";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ] ++
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "autograd";
|
||||
version = "1.2";
|
||||
version = "1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zd4lhz9dpll4i63jjijbzkzbgmg8h88il7lr7kmcylvadnzm2x0";
|
||||
sha256 = "1i1ylf03b7220n8znk63zg6sgdd3py9wlh1pvqvy03g1fxsi8pd1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy future ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Autologging";
|
||||
version = "1.2.1";
|
||||
version = "1.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16v2k16m433fxlvl7f0081n67rpxhs2hyn1ivkx1xs5qjxpv5n3k";
|
||||
sha256 = "117659584d8aab8cf62046f682f8e57b54d958b8571c737fa8bf15c32937fbb6";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
m2r, setuptools_scm, six, attrs }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
version = "0.8.0";
|
||||
pname = "Automat";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cbd78b83fa2d81fe2a4d23d258e1661dd7493c9a50ee2f1a5b2cac61c1793b0e";
|
||||
sha256 = "269a09dfb063a3b078983f4976d83f0a0d3e6e7aaf8e27d8df1095e09dc4a484";
|
||||
};
|
||||
|
||||
buildInputs = [ m2r setuptools_scm ];
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user