summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ochre/default.nix
blob: 3a85603756801420881aa7d38dc96742787806db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  hypothesis,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "ochre";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "getcuia";
    repo = "ochre";
    rev = "v${version}";
    hash = "sha256-U6qycLnldwNze3XMAn6DS3XGX4RaCZgW0pH/y/FEAkk=";
  };

  nativeBuildInputs = [ poetry-core ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  pythonImportsCheck = [ "ochre" ];

  meta = {
    description = "Down-to-earth approach to colors";
    homepage = "https://github.com/getcuia/ochre";
    changelog = "https://github.com/getcuia/ochre/releases/tag/${src.rev}";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}