croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / imgcat / default.nix
blob0f190463c44441e7006dc0234810be699f29c2d6
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   matplotlib,
7   numpy,
8   pillow,
9   pytestCheckHook,
10   setuptools,
11   tensorflow,
12   torch,
15 buildPythonPackage rec {
16   pname = "imgcat";
17   version = "0.6.0";
18   pyproject = true;
20   src = fetchFromGitHub {
21     owner = "wookayin";
22     repo = "python-imgcat";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-FsLa8Z4aKuj3E5twC2LTXZDM0apmyYfgeyZQu/wLdAo=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace-fail "'pytest-runner<5.0'" ""
30   '';
32   build-system = [ setuptools ];
34   nativeCheckInputs = [
35     matplotlib
36     numpy
37     pillow
38     pytestCheckHook
39     tensorflow
40     torch
41   ];
43   pythonImportsCheck = [ "imgcat" ];
45   meta = {
46     description = "Imgcat in Python";
47     homepage = "https://github.com/wookayin/python-imgcat";
48     changelog = "https://github.com/wookayin/python-imgcat/releases/tag/v${version}";
49     license = lib.licenses.mit;
50     maintainers = with lib.maintainers; [ fab ];
51   };