From c3dac8f467b4826411cab5ececa2999af4ed2ae1 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 14 Mar 2016 09:55:06 +0100 Subject: [PATCH 1/3] pytest-localserver: init at 0.3.5 --- pkgs/top-level/python-packages.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5608f75b15c4..9b5891c11579 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4239,6 +4239,28 @@ in modules // { }; }; + pytest-localserver = buildPythonPackage rec { + name = "pytest-localserver-${version}"; + version = "0.3.5"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/p/pytest-localserver/${name}.tar.gz"; + sha256 = "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"; + }; + + propagatedBuildInputs = with self; [ werkzeug ]; + buildInputs = with self; [ pytest six requests2 ]; + + checkPhase = '' + py.test + ''; + + meta = { + description = "Plugin for the pytest testing framework to test server connections locally"; + homepage = https://pypi.python.org/pypi/pytest-localserver; + license = licenses.mit; + }; + }; tinycss = buildPythonPackage rec { name = "tinycss-${version}"; From d373ef3508650fdb5eb2acbfc81637e4f6632806 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 14 Mar 2016 09:55:27 +0100 Subject: [PATCH 2/3] pytest-subtesthack: init at 0.1.1 --- pkgs/top-level/python-packages.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9b5891c11579..33351c8e84cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4262,6 +4262,27 @@ in modules // { }; }; + pytest-subtesthack = buildPythonPackage rec { + name = "pytest-subtesthack-${version}"; + version = "0.1.1"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/p/pytest-subtesthack/${name}.tar.gz"; + sha256 = "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"; + }; + + propagatedBuildInputs = with self; [ pytest ]; + + # no upstream test + doCheck = false; + + meta = { + description = "Terrible plugin to set up and tear down fixtures within the test function itself"; + homepage = https://github.com/untitaker/pytest-subtesthack; + license = licenses.publicDomain; + }; + }; + tinycss = buildPythonPackage rec { name = "tinycss-${version}"; version = "0.3"; From 32dcc5a31bf3a7fb44206aec38c40e5484919b4b Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sun, 13 Mar 2016 08:37:57 +0100 Subject: [PATCH 3/3] vdirsyncer: 0.9.0 -> 0.9.2 Also activate the automated testing --- pkgs/tools/misc/vdirsyncer/default.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/misc/vdirsyncer/default.nix b/pkgs/tools/misc/vdirsyncer/default.nix index d6789bf52bc5..a411f8a2fc25 100644 --- a/pkgs/tools/misc/vdirsyncer/default.nix +++ b/pkgs/tools/misc/vdirsyncer/default.nix @@ -1,29 +1,32 @@ -{ stdenv, fetchurl, pythonPackages }: +{ stdenv, fetchurl, pythonPackages, glibcLocales }: +# Packaging documentation at: +# https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst pythonPackages.buildPythonApplication rec { - version = "0.9.0"; + version = "0.9.2"; name = "vdirsyncer-${version}"; namePrefix = ""; src = fetchurl { url = "https://pypi.python.org/packages/source/v/vdirsyncer/${name}.tar.gz"; - sha256 = "0s9awjr9v60rr80xcpwmdhkf4v1yqnydahjmxwvxmh64565is465"; + sha256 = "1g1107cz4sk41d2z6k6pn9n2fzd26m72j8aj33zn483vfvmyrc4q"; }; propagatedBuildInputs = with pythonPackages; [ click click-log click-threading lxml - setuptools - setuptools_scm requests_toolbelt requests2 atomicwrites ]; - # Unfortunately, checking this package seems a bit too complex - # https://github.com/NixOS/nixpkgs/pull/13098#issuecomment-185914025 - # https://github.com/untitaker/vdirsyncer/issues/334#issuecomment-185872854 - doCheck = false; + buildInputs = with pythonPackages; [hypothesis pytest pytest-localserver pytest-subtesthack setuptools_scm ] ++ [ glibcLocales ]; + + LC_ALL = "en_US.utf8"; + + checkPhase = '' + make DETERMINISTIC_TESTS=true test + ''; meta = with stdenv.lib; { homepage = https://github.com/untitaker/vdirsyncer;