nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ffmpeg-python,
6 numpy,
7 pillow,
8 pypaInstallHook,
9 pytestCheckHook,
10 requests,
11 setuptoolsBuildHook,
12}:
13
14buildPythonPackage rec {
15 pname = "image-go-nord";
16 version = "1.2.0";
17 pyproject = false;
18
19 src = fetchFromGitHub {
20 owner = "Schrodinger-Hat";
21 repo = "ImageGoNord-pip";
22 tag = "v${version}";
23 hash = "sha256-rPp4QrkbDhrdpfynRUYgxpNgUNxU+3h54Ea7s/+u1kI=";
24 };
25
26 nativeBuildInputs = [
27 pypaInstallHook
28 setuptoolsBuildHook
29 ];
30
31 dependencies = [
32 ffmpeg-python
33 numpy
34 pillow
35 requests
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 pythonImportsCheck = [ "ImageGoNord" ];
41
42 meta = {
43 description = "Tool that can convert rgb images to nordtheme palette";
44 homepage = "https://github.com/Schrodinger-Hat/ImageGoNord-pip";
45 changelog = "https://github.com/Schroedinger-Hat/ImageGoNord-pip/releases/tag/v${version}";
46 license = lib.licenses.mit;
47 maintainers = [ ];
48 };
49}