nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 asttokens,
11 colorama,
12 executing,
13 pygments,
14
15 # tests
16 pytestCheckHook,
17}:
18
19buildPythonPackage rec {
20 pname = "icecream";
21 version = "2.1.10";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "gruns";
26 repo = "icecream";
27 tag = "v${version}";
28 hash = "sha256-5PFl+DIsWGbh2VR+xW/L9fYBF0VCo1B10b+mzsq85As=";
29 };
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 asttokens
35 colorama
36 executing
37 pygments
38 ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
41
42 meta = {
43 description = "Little library for sweet and creamy print debugging";
44 homepage = "https://github.com/gruns/icecream";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ renatoGarcia ];
47 };
48}