Skip to content

Commit

Permalink
Merge commit 'a0f8e3a' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Jan 22, 2018
2 parents 92c0720 + a0f8e3a commit 4c88132
Show file tree
Hide file tree
Showing 102 changed files with 836 additions and 608 deletions.
28 changes: 28 additions & 0 deletions pkgs/applications/networking/mailreaders/afew/default.nix
@@ -0,0 +1,28 @@
{ stdenv, pythonPackages, notmuch }:

pythonPackages.buildPythonApplication rec {
pname = "afew";
version = "1.2.0";

src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r";
};

buildInputs = with pythonPackages; [ setuptools_scm ];

propagatedBuildInputs = with pythonPackages; [
pythonPackages.notmuch chardet
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;

makeWrapperArgs = [
''--prefix PATH ':' "${notmuch}/bin"''
];

meta = with stdenv.lib; {
homepage = https://github.com/afewmail/afew;
description = "An initial tagging script for notmuch mail";
license = licenses.isc;
maintainers = with maintainers; [ garbas andir flokli ];
};
}
Expand Up @@ -25,7 +25,7 @@ buildPythonApplication rec {

# ignore flake8 tests for the nix wrapped setup.py
checkPhase = ''
PATH=$PATH:$out/bin:${mercurial}/bin pytest --ignore=nix_run_setup.py .
PATH=$PATH:$out/bin:${mercurial}/bin pytest .
'';

meta = {
Expand Down
Expand Up @@ -21,18 +21,18 @@ let
setuppy = ./run_setup.py;

in attrs // {
# we copy nix_run_setup.py over so it's executed relative to the root of the source
# we copy nix_run_setup over so it's executed relative to the root of the source
# many project make that assumption
buildPhase = attrs.buildPhase or ''
runHook preBuild
cp ${setuppy} nix_run_setup.py
${python.interpreter} nix_run_setup.py ${lib.optionalString (setupPyBuildFlags != []) ("build_ext " + (lib.concatStringsSep " " setupPyBuildFlags))} bdist_wheel
cp ${setuppy} nix_run_setup
${python.interpreter} nix_run_setup ${lib.optionalString (setupPyBuildFlags != []) ("build_ext " + (lib.concatStringsSep " " setupPyBuildFlags))} bdist_wheel
runHook postBuild
'';

installCheckPhase = attrs.checkPhase or ''
runHook preCheck
${python.interpreter} nix_run_setup.py test
${python.interpreter} nix_run_setup test
runHook postCheck
'';

Expand Down
Expand Up @@ -227,7 +227,7 @@ in stdenv.mkDerivation {
'';
license = stdenv.lib.licenses.psfl;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ chaoflow domenkozar ];
maintainers = with stdenv.lib.maintainers; [ fridh ];
# Higher priority than Python 3.x so that `/bin/python` points to `/bin/python2`
# in case both 2 and 3 are installed.
priority = -100;
Expand Down
Expand Up @@ -185,6 +185,6 @@ in stdenv.mkDerivation {
'';
license = licenses.psfl;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ chaoflow domenkozar cstrahan ];
maintainers = with maintainers; [ fridh ];
};
}
Expand Up @@ -178,6 +178,6 @@ in stdenv.mkDerivation {
'';
license = licenses.psfl;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ chaoflow domenkozar cstrahan ];
maintainers = with maintainers; [ fridh ];
};
}
Expand Up @@ -178,6 +178,6 @@ in stdenv.mkDerivation {
'';
license = licenses.psfl;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ chaoflow domenkozar cstrahan kragniz ];
maintainers = with maintainers; [ fridh kragniz ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/python/pypy/2.7/default.nix
Expand Up @@ -139,6 +139,6 @@ in stdenv.mkDerivation rec {
description = "Fast, compliant alternative implementation of the Python language (2.7.13)";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ domenkozar ];
maintainers = with maintainers; [ ];
};
}
3 changes: 1 addition & 2 deletions pkgs/development/libraries/mesa/default.nix
Expand Up @@ -98,7 +98,7 @@ stdenv.mkDerivation {

# TODO: Figure out how to enable opencl without having a runtime dependency on clang
configureFlags = [
"--sysconfdir=/etc"
"--sysconfdir=${driverLink}/etc"
"--localstatedir=/var"
"--with-dri-driverdir=$(drivers)/lib/dri"
"--with-dri-searchpath=${driverLink}/lib/dri"
Expand Down Expand Up @@ -197,7 +197,6 @@ stdenv.mkDerivation {
'';

# TODO:
# @vcunat isn't sure if drirc will be found when in $out/etc/;
# check $out doesn't depend on llvm: builder failures are ignored
# for some reason grep -qv '${llvmPackages.llvm}' -R "$out";
postFixup = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/APScheduler/default.nix
Expand Up @@ -20,12 +20,12 @@

buildPythonPackage rec {
pname = "APScheduler";
version = "3.5.0";
version = "3.5.1";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "1ce44d5132b7951f4614067c88ca34cfee1ff97f6f0892581d79b636d83eab89";
sha256 = "952c8f46a11f32b9d5bfbe3e347dac2cdf0680d8b4799590dc9c3a9865b73b65";
};

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/absl-py/default.nix
Expand Up @@ -6,12 +6,12 @@

buildPythonPackage rec {
pname = "absl-py";
version = "0.1.7";
version = "0.1.9";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "4ea22ae860f3a556511291e7f1284942199c81377f47ec4248163defb1b9e6ee";
sha256 = "1c787e3bc7ef8fea7a8a79cf36b0c550b4bd66e13c05d1352fbc5786488befb0";
};

propagatedBuildInputs = [ six ];
Expand Down
34 changes: 0 additions & 34 deletions pkgs/development/python-modules/afew/default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aiohttp/default.nix
Expand Up @@ -13,12 +13,12 @@

buildPythonPackage rec {
pname = "aiohttp";
version = "2.3.7";
version = "2.3.9";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "fe294df38e9c67374263d783a7a29c79372030f5962bd5734fa51c6f4bbfee3b";
sha256 = "6003bed78dc591d31bd89ef16e630a1c4fd97a3cd17b975ec945c0f46d6fc881";
};

disabled = pythonOlder "3.4";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/alembic/default.nix
Expand Up @@ -6,11 +6,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "alembic";
version = "0.9.6";
version = "0.9.7";

src = fetchPypi {
inherit pname version;
sha256 = "042851ebe9efa07be6dc1395b1793b6c1d8964a39b73a0ce1649e2bcd41ea732";
sha256 = "46f4849c6dce69f54dd5001b3215b6a983dee6b17512efee10e237fa11f20cfa";
};

buildInputs = [ pytest pytestcov mock coverage ];
Expand Down
14 changes: 10 additions & 4 deletions pkgs/development/python-modules/ansicolors/default.nix
@@ -1,15 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi }:
{ stdenv, buildPythonPackage, fetchPypi, pytest }:

buildPythonPackage rec {
pname = "ansicolors";
version = "1.0.2";
name = "${pname}-${version}";
version = "1.1.8";

src = fetchPypi {
inherit pname version;
sha256 = "02lmh2fbqcwr98cq13l9ql0fvyad1dcb3ap3c5xq9qwjp45m6r3n";
extension = "zip";
sha256 = "99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0";
};

checkInputs = [ pytest ];

checkPhase = ''
py.test
'';

meta = with stdenv.lib; {
homepage = https://github.com/verigak/colors/;
description = "ANSI colors for Python";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/arrow/default.nix
Expand Up @@ -4,11 +4,11 @@

buildPythonPackage rec {
pname = "arrow";
version = "0.12.0";
version = "0.12.1";

src = fetchPypi {
inherit pname version;
sha256 = "a15ecfddf334316e3ac8695e48c15d1be0d6038603b33043930dcf0e675c86ee";
sha256 = "a558d3b7b6ce7ffc74206a86c147052de23d3d4ef0e17c210dd478c53575c4cd";
};

checkPhase = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/asana/default.nix
Expand Up @@ -4,7 +4,7 @@

buildPythonPackage rec {
pname = "asana";
version = "0.6.5";
version = "0.6.7";
name = "${pname}-${version}";

meta = {
Expand All @@ -15,7 +15,7 @@ buildPythonPackage rec {

src = fetchPypi {
inherit pname version;
sha256 = "eab8d24c2a4670b541b75da2f4bf5b995fe71559c1338da53ce9039f7b19c9a0";
sha256 = "d576601116764050c4cf63b417f1c24700b76cf6686f0e51e6b0b77d450e7973";
};

checkInputs = [ pytest ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/asgiref/default.nix
@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec {
version = "2.0.1";
version = "2.1.0";
pname = "asgiref";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
sha256 = "c3d70c473a2b7e525e18e68504630943e107f5b32f440c00c8543f94f565c855";
sha256 = "2bfd70fcc51df4036768b91d7b13524090dc8f366d79fa44ba2b0aeb47306344";
};

propagatedBuildInputs = [ six ];
Expand Down
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/bleach/default.nix
@@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestrunner
, six
, html5lib
}:

buildPythonPackage rec {
pname = "bleach";
version = "2.1.2";

src = fetchPypi {
inherit pname version;
sha256 = "38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19";
};

checkInputs = [ pytest pytestrunner ];
propagatedBuildInputs = [ six html5lib ];

postPatch = ''
substituteInPlace setup.py --replace ",<3dev" ""
'';

meta = {
description = "An easy, HTML5, whitelisting HTML sanitizer";
longDescription = ''
Bleach is an HTML sanitizing library that escapes or strips markup and
attributes based on a white list. Bleach can also linkify text safely,
applying filters that Django's urlize filter cannot, and optionally
setting rel attributes, even on links already in the text.
Bleach is intended for sanitizing text from untrusted sources. If you
find yourself jumping through hoops to allow your site administrators
to do lots of things, you're probably outside the use cases. Either
trust those users, or don't.
'';
homepage = https://github.com/mozilla/bleach;
downloadPage = https://github.com/mozilla/bleach/releases;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ prikhi ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/botocore/default.nix
Expand Up @@ -12,11 +12,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "botocore";
version = "1.8.26";
version = "1.8.33";

src = fetchPypi {
inherit pname version;
sha256 = "09j3b80l401hwc3ha0s2c2qq6z45x846an09ybc9y8cb1ky0kdlv";
sha256 = "fa29ea54f26b1193682332d3b4cdde7aa79b4eaccb23f70e88672509c24546f4";
};

propagatedBuildInputs = [
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/python-modules/bpython/default.nix
Expand Up @@ -3,7 +3,6 @@
buildPythonPackage rec {
pname = "bpython";
version = "0.17";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/certifi/default.nix
Expand Up @@ -5,12 +5,12 @@

buildPythonPackage rec {
pname = "certifi";
version = "2017.7.27.1";
version = "2018.1.18";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "40523d2efb60523e113b44602298f0960e900388cf3bb6043f645cf57ea9e3f5";
sha256 = "edbc3f203427eef571f79a7692bb160a2b0f7ccaa31953e99bd17e307cf63f7d";
};

meta = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/cffi/default.nix
Expand Up @@ -2,12 +2,12 @@

if isPyPy then null else buildPythonPackage rec {
pname = "cffi";
version = "1.11.2";
version = "1.11.4";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "ab87dd91c0c4073758d07334c1e5f712ce8fe48f007b86f8238773963ee700a6";
sha256 = "df9083a992b17a28cd4251a3f5c879e0198bb26c9e808c4647e0a18739f1d11d";
};

patches = stdenv.lib.optional (isPy27 && stdenv.cc.isClang) ./clang.patch;
Expand Down

1 comment on commit 4c88132

@FRidh
Copy link
Member Author

@FRidh FRidh commented on 4c88132 Jan 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this is a partial merge of staging at a0f8e3a

Please sign in to comment.