1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 colormath2,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "spectra";
12 version = "0.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "jsvine";
17 repo = "spectra";
18 tag = "v${version}";
19 hash = "sha256-PS5p9IR3v6+Up5Fcq8mhkprVgXigD6PZUF4/6hbv7NI=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 dependencies = [ colormath2 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 meta = {
33 description = "Python library that makes color math, color scales, and color-space conversion easy";
34 homepage = "https://github.com/jsvine/spectra";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ apraga ];
37 };
38}