Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
39
pkgs/development/python-modules/acme-tiny/default.nix
Normal file
39
pkgs/development/python-modules/acme-tiny/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
, python, openssl }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "acme-tiny";
|
||||
version = "2016-03-26";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "0ngmr3kxcvlqa9mrv3gx0rg4r67xvdjplqfminxliri3ipak853g";
|
||||
rev = "7a5a2558c8d6e5ab2a59b9fec9633d9e63127971";
|
||||
repo = "acme-tiny";
|
||||
owner = "diafygi";
|
||||
};
|
||||
|
||||
# source doesn't have any python "packaging" as such
|
||||
configurePhase = " ";
|
||||
buildPhase = " ";
|
||||
# the tests are... complex
|
||||
doCheck = false;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace acme_tiny.py --replace "openssl" "${openssl.bin}/bin/openssl"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/${python.sitePackages}/
|
||||
cp acme_tiny.py $out/${python.sitePackages}/
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/${python.sitePackages}/acme_tiny.py $out/bin/acme_tiny
|
||||
chmod +x $out/bin/acme_tiny
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
|
||||
homepage = https://github.com/diafygi/acme-tiny;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/actdiag/default.nix
Normal file
29
pkgs/development/python-modules/actdiag/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pep8, nose, unittest2, docutils, blockdiag }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "actdiag";
|
||||
version = "0.5.3";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1vr4hnkr0gcvvpaycd8q3vcx029b2f5yv8swhdr8kwspaqb0dvfa";
|
||||
};
|
||||
|
||||
buildInputs = [ pep8 nose unittest2 docutils ];
|
||||
|
||||
propagatedBuildInputs = [ blockdiag ];
|
||||
|
||||
# One test fails:
|
||||
# UnicodeEncodeError: 'ascii' codec can't encode character u'\u3042' in position 0: ordinal not in range(128)
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
|
||||
homepage = http://blockdiag.com/;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/adal/default.nix
Normal file
22
pkgs/development/python-modules/adal/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, requests, pyjwt }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adal";
|
||||
version = "0.1.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1f32k18ck54adqlgvh6fjhy4yavcyrwy813prjyqppqqq4bn1a09";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests pyjwt ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library to make it easy for python application to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources";
|
||||
homepage = https://github.com/AzureAD/azure-activedirectory-library-for-python;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ phreedom ];
|
||||
};
|
||||
}
|
||||
39
pkgs/development/python-modules/afew/default.nix
Normal file
39
pkgs/development/python-modules/afew/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
, isPy3k , dbacl, notmuch, chardet, subprocess32 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "afew";
|
||||
version = "git-2017-02-08";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "afewmail";
|
||||
repo = "afew";
|
||||
rev = "889a3b966835c4d16aa1f24bb89f12945b9b2a67";
|
||||
sha256 = "01gwrx1m3ka13ps3vj04a3y8llli2j2vkd3gcggcvxdphhpysckm";
|
||||
};
|
||||
|
||||
buildInputs = [ dbacl ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
notmuch
|
||||
chardet
|
||||
] ++ stdenv.lib.optional (!isPy3k) subprocess32;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace afew/DBACL.py --replace "'dbacl'" "'${dbacl}/bin/dbacl'"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/afew \
|
||||
--prefix LD_LIBRARY_PATH : ${notmuch}/lib
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/teythoon/afew;
|
||||
description = "An initial tagging script for notmuch mail";
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
}
|
||||
30
pkgs/development/python-modules/aiodns/default.nix
Normal file
30
pkgs/development/python-modules/aiodns/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, isPy33, isPy26, isPy27, isPyPy, python, pycares, asyncio, trollius }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiodns";
|
||||
version = "1.0.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "595b78b8d54115d937cf60d778c02dad76b6f789fd527dab308f99e5601e7f3d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with stdenv.lib; [ pycares ]
|
||||
++ optional isPy33 asyncio
|
||||
++ optional (isPy26 || isPy27 || isPyPy) trollius;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests.py
|
||||
'';
|
||||
|
||||
# 'Could not contact DNS servers'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/saghul/aiodns;
|
||||
license = licenses.mit;
|
||||
description = "Simple DNS resolver for asyncio";
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/alabaster/default.nix
Normal file
24
pkgs/development/python-modules/alabaster/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pygments }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alabaster";
|
||||
version = "0.7.7";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f416a84e0d0ddbc288f6b8f2c276d10b40ca1238562cd9ed5a751292ec647b71";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygments ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/bitprophet/alabaster;
|
||||
description = "A Sphinx theme";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/aniso8601/default.nix
Normal file
21
pkgs/development/python-modules/aniso8601/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, dateutil }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aniso8601";
|
||||
version = "1.2.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Parses ISO 8601 strings.";
|
||||
homepage = "https://bitbucket.org/nielsenb/aniso8601";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "502400f82574afa804cc915d83f15c67533d364dcd594f8a6b9d2053f3404dd4";
|
||||
};
|
||||
}
|
||||
19
pkgs/development/python-modules/ansicolors/default.nix
Normal file
19
pkgs/development/python-modules/ansicolors/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansicolors";
|
||||
version = "1.0.2";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02lmh2fbqcwr98cq13l9ql0fvyad1dcb3ap3c5xq9qwjp45m6r3n";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/verigak/colors/";
|
||||
description = "ANSI colors for Python";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ copumpkin ];
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/arrow/default.nix
Normal file
27
pkgs/development/python-modules/arrow/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, nose, chai, simplejson
|
||||
, dateutil }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "arrow";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
nosetests --cover-package=arrow
|
||||
'';
|
||||
|
||||
buildInputs = [ nose chai simplejson ];
|
||||
propagatedBuildInputs = [ dateutil ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python library for date manipulation";
|
||||
license = "apache";
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
};
|
||||
}
|
||||
17
pkgs/development/python-modules/python-editor/default.nix
Normal file
17
pkgs/development/python-modules/python-editor/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.4";
|
||||
pname = "python-editor";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1gykxn16anmsbcrwhx3rrhwjif95mmwvq9gjcrr9bbzkdc8sf8a4";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library that provides the `editor` module for programmatically";
|
||||
homepage = "https://github.com/fmoo/python-editor";
|
||||
};
|
||||
}
|
||||
30
pkgs/development/python-modules/python-gnupg/default.nix
Normal file
30
pkgs/development/python-modules/python-gnupg/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, gnupg1 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "python-gnupg";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06hfw9cmiw5306fyisp3kzg1hww260qzip829g7y7pj1mwpb0izg";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ gnupg1 ];
|
||||
|
||||
# Let's make the library default to our gpg binary
|
||||
patchPhase = ''
|
||||
substituteInPlace gnupg.py \
|
||||
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg1}/bin/gpg'"
|
||||
substituteInPlace test_gnupg.py \
|
||||
--replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg1}/bin/gpg'"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A wrapper for the Gnu Privacy Guard";
|
||||
homepage = https://pypi.python.org/pypi/python-gnupg;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ copumpkin ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/python-uinput/default.nix
Normal file
24
pkgs/development/python-modules/python-uinput/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, udev }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-uinput";
|
||||
version = "0.11.2";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "033zqiypjz0nigav6vz0s57pbzikvds55mxphrdpkdbpdikjnfcr";
|
||||
};
|
||||
|
||||
buildInputs = [ udev ];
|
||||
|
||||
NIX_CFLAGS_LINK = [ "-ludev" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pythonic API to Linux uinput kernel module";
|
||||
homepage = "http://tjjr.fi/sw/python-uinput/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
@@ -14,6 +14,8 @@ buildPythonApplication rec {
|
||||
inherit pname version;
|
||||
sha256 = "1676e07947a19df9d17002307a7555c2647a4224d6f2869949e8fc4bd18f2e87";
|
||||
};
|
||||
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
|
||||
# workaround: sudo chmod 777 /dev/shm
|
||||
checkPhase = ''
|
||||
py.test testcases
|
||||
'';
|
||||
|
||||
27
pkgs/development/python-modules/zconfig/default.nix
Normal file
27
pkgs/development/python-modules/zconfig/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, zope_testrunner
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ZConfig";
|
||||
version = "3.2.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "de0a802e5dfea3c0b3497ccdbe33a5023c4265f950f33e35dd4cf078d2a81b19";
|
||||
};
|
||||
|
||||
patches = [ ./skip-broken-test.patch ];
|
||||
|
||||
propagatedBuildInputs = [ zope_testrunner ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Structured Configuration Library";
|
||||
homepage = http://pypi.python.org/pypi/ZConfig;
|
||||
license = licenses.zpt20;
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/ZConfig/tests/test_schema2html.py b/ZConfig/tests/test_schema2html.py
|
||||
index 838cf7c..52daf4e 100644
|
||||
--- a/ZConfig/tests/test_schema2html.py
|
||||
+++ b/ZConfig/tests/test_schema2html.py
|
||||
@@ -74,6 +74,7 @@ else:
|
||||
|
||||
class TestSchema2HTML(unittest.TestCase):
|
||||
|
||||
+ @unittest.skip('broken test (https://github.com/zopefoundation/ZConfig/issues/34)')
|
||||
def test_no_schema(self):
|
||||
self.assertRaises(SystemExit,
|
||||
run_transform)
|
||||
25
pkgs/development/python-modules/zope_interface/default.nix
Normal file
25
pkgs/development/python-modules/zope_interface/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, zope_event
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zope.interface";
|
||||
version = "4.4.2";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4e59e427200201f69ef82956ddf9e527891becf5b7cde8ec3ce39e1d0e262eb0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zope_event ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Zope.Interface";
|
||||
homepage = http://zope.org/Products/ZopeInterface;
|
||||
license = licenses.zpt20;
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
};
|
||||
}
|
||||
32
pkgs/development/python-modules/zope_testrunner/default.nix
Normal file
32
pkgs/development/python-modules/zope_testrunner/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, zope_interface
|
||||
, zope_exceptions
|
||||
, zope_testing
|
||||
, six
|
||||
, subunit
|
||||
}:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zope.testrunner";
|
||||
version = "4.7.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8ffcb4989829544a83d27e42b2eeb28f8fc134bd847d71ce8dca54f710526ef0";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zope_interface zope_exceptions zope_testing six ] ++ stdenv.lib.optional (!isPy3k) subunit;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A flexible test runner with layer support";
|
||||
homepage = http://pypi.python.org/pypi/zope.testrunner;
|
||||
license = licenses.zpt20;
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user