From 0f4383eae500a6a5ace6982afbb83cb60b38dee1 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 12:06:15 -0400 Subject: [PATCH] pythonPackages.venusian: 1.0 -> 1.1.0 Added tests and refactored moved to python-modules --- .../python-modules/venusian/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +----------- 2 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/venusian/default.nix diff --git a/pkgs/development/python-modules/venusian/default.nix b/pkgs/development/python-modules/venusian/default.nix new file mode 100644 index 000000000000..14d678be892d --- /dev/null +++ b/pkgs/development/python-modules/venusian/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +}: + +buildPythonPackage rec { + pname = "venusian"; + version = "1.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "9902e492c71a89a241a18b2f9950bea7e41d025cc8f3af1ea8d8201346f8577d"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + pytest + ''; + + meta = with stdenv.lib; { + description = "A library for deferring decorator actions"; + homepage = http://pylonsproject.org/; + license = licenses.bsd0; + maintainers = with maintainers; [ garbas domenkozar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3f54712ddc98..8bb4ef2f76c3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4255,23 +4255,7 @@ in { vcrpy = callPackage ../development/python-modules/vcrpy { }; - venusian = buildPythonPackage rec { - name = "venusian-1.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/v/venusian/${name}.tar.gz"; - sha256 = "1720cff2ca9c369c840c1d685a7c7a21da1afa687bfe62edd93cae4bf429ca5a"; - }; - - # TODO: https://github.com/Pylons/venusian/issues/23 - doCheck = false; - - meta = { - maintainers = with maintainers; [ garbas domenkozar ]; - platforms = platforms.all; - }; - }; - + venusian = callPackage ../development/python-modules/venusian { }; chameleon = buildPythonPackage rec { name = "Chameleon-2.25";