From 4cf18fc2c5ec9c4e18d16db223f4e7c05ac87c68 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 3 Apr 2018 13:13:12 +0200 Subject: [PATCH] pythonPackages.cssutils: Move to own file --- .../python-modules/cssutils/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +------------------ 2 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/cssutils/default.nix diff --git a/pkgs/development/python-modules/cssutils/default.nix b/pkgs/development/python-modules/cssutils/default.nix new file mode 100644 index 000000000000..30398fd50062 --- /dev/null +++ b/pkgs/development/python-modules/cssutils/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchPypi, mock }: + +buildPythonPackage rec { + pname = "cssutils"; + version = "1.0.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq"; + }; + + buildInputs = [ mock ]; + + # couple of failing tests + doCheck = false; + + meta = with stdenv.lib; { + description = "A Python package to parse and build CSS"; + homepage = http://code.google.com/p/cssutils/; + license = licenses.lgpl3Plus; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 586bca178c60..ca1484e7abf3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1997,27 +1997,7 @@ in { cssselect = callPackage ../development/python-modules/cssselect { }; - cssutils = buildPythonPackage (rec { - name = "cssutils-1.0.1"; - - src = pkgs.fetchurl { - url = mirror://pypi/c/cssutils/cssutils-1.0.1.tar.gz; - sha256 = "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq"; - }; - - buildInputs = with self; [ self.mock ]; - - # couple of failing tests - doCheck = false; - - meta = { - description = "A Python package to parse and build CSS"; - - homepage = http://code.google.com/p/cssutils/; - - license = licenses.lgpl3Plus; - }; - }); + cssutils = callPackage ../development/python-modules/cssutils { }; darcsver = buildPythonPackage (rec { name = "darcsver-1.7.4";