1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 hypothesis,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "ochre";
12 version = "0.4.0";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "getcuia";
17 repo = "ochre";
18 rev = "v${version}";
19 hash = "sha256-U6qycLnldwNze3XMAn6DS3XGX4RaCZgW0pH/y/FEAkk=";
20 };
21
22 nativeBuildInputs = [ poetry-core ];
23
24 nativeCheckInputs = [
25 hypothesis
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "ochre" ];
30
31 meta = with lib; {
32 description = "Down-to-earth approach to colors";
33 homepage = "https://github.com/getcuia/ochre";
34 changelog = "https://github.com/getcuia/ochre/releases/tag/${src.rev}";
35 license = licenses.mit;
36 maintainers = with maintainers; [ figsoda ];
37 };
38}