From 1b221099042d18d454649ca74838858d5d5a8f42 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 16:57:30 +0000 Subject: [PATCH] pythonPackages.pastel: init at 0.1.0 --- .../python-modules/pastel/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/pastel/default.nix diff --git a/pkgs/development/python-modules/pastel/default.nix b/pkgs/development/python-modules/pastel/default.nix new file mode 100644 index 000000000000..2d99447f724f --- /dev/null +++ b/pkgs/development/python-modules/pastel/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pytest }: + +buildPythonPackage rec { + pname = "pastel"; + version = "0.1.0"; + + # No tests in PyPi tarball + src = fetchFromGitHub { + owner = "sdispater"; + repo = "pastel"; + rev = version; + sha256 = "1b4ag7jr7j0sxly5g29imdq8g0d4ixhbck55dblr45mlsidydx0s"; + }; + + checkInputs = [ pytest ]; + checkPhase = '' + pytest tests -sq + ''; + + meta = with lib; { + homepage = https://github.com/sdispater/pastel; + description = "Bring colors to your terminal"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7e7caa6d179c..ff81e9bc5b6c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -488,6 +488,8 @@ in { palettable = callPackage ../development/python-modules/palettable { }; + pastel = callPackage ../development/python-modules/pastel { }; + pathlib = callPackage ../development/python-modules/pathlib { }; pdf2image = callPackage ../development/python-modules/pdf2image { };