mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python3Packages.tilequant: init at 0.4.0.post0
This commit is contained in:
parent
f6122ba3dd
commit
8a395dec82
38
pkgs/development/python-modules/tilequant/default.nix
Normal file
38
pkgs/development/python-modules/tilequant/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, GitPython, click, ordered-set, pillow, sortedcollections }:
|
||||
|
||||
let
|
||||
aikku93-tilequant = fetchFromGitHub {
|
||||
owner = "SkyTemple";
|
||||
repo = "aikku93-tilequant";
|
||||
rev = "6604e0906edff384b6c8d4cde03e6601731f66fd";
|
||||
sha256 = "0w19h3n2i0xriqsy0b0rifjgbv4hqd7gl78fw0cappkrdykij5r1";
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "tilequant";
|
||||
version = "0.4.0.post0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SkyTemple";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "189af203iay3inj1bbgm3hh1fshn879bcm28ypbvfp27fy7j5b25";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
cp -R --no-preserve=mode ${aikku93-tilequant} __aikku93_tilequant
|
||||
'';
|
||||
|
||||
buildInputs = [ GitPython ];
|
||||
propagatedBuildInputs = [ click ordered-set pillow sortedcollections ];
|
||||
|
||||
doCheck = false; # there are no tests
|
||||
pythonImportsCheck = [ "skytemple_tilequant" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/SkyTemple/tilequant";
|
||||
description = "Tool for quantizing image colors using tile-based palette restrictions";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ xfix ];
|
||||
};
|
||||
}
|
@ -8284,6 +8284,8 @@ in {
|
||||
inherit (pkgs) tiledb;
|
||||
};
|
||||
|
||||
tilequant = callPackage ../development/python-modules/tilequant { };
|
||||
|
||||
tilestache = callPackage ../development/python-modules/tilestache { };
|
||||
|
||||
timeago = callPackage ../development/python-modules/timeago { };
|
||||
|
Loading…
Reference in New Issue
Block a user