nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 634b224064e1049b9a31bd0fd227ec185ecd74d8
parent a1a2dda544a10fbcf55db5febc3f96084fa5e891
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun, 22 Nov 2020 18:38:22 +0300

Add pyimagequant

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/python-modules/pyimagequant/default.nix | 25+++++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -123,6 +123,7 @@ lib.makeScope newScope ( mercantile = callPackage ./development/python-modules/mercantile { }; mikatools = callPackage ./development/python-modules/mikatools { }; pyephem = callPackage ./development/python-modules/pyephem { }; + pyimagequant = callPackage ./development/python-modules/pyimagequant { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; python-hfst = callPackage ./development/python-modules/python-hfst { }; s2sphere = callPackage ./development/python-modules/s2sphere { }; diff --git a/pkgs/development/python-modules/pyimagequant/default.nix b/pkgs/development/python-modules/pyimagequant/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "pyimagequant"; + version = "2019-10-24"; + + src = fetchFromGitHub { + owner = "wladich"; + repo = pname; + rev = "a467b3b2566f4edd31a272738f7c5e646c0d84a9"; + sha256 = "1alyaizr910zv885a15mmw9v74bsmmkch5n14ggi69w54sq5j6y8"; + fetchSubmodules = true; + }; + + propagatedBuildInputs = with python3Packages; [ cython ]; + + pythonImportsCheck = [ "imagequant" ]; + + meta = with lib; { + inherit (sources.pyimagequant) description homepage; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}