Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / imgcat / default.nix
blob1d0c91e177c09d24c34188a55dce2f9cfee34cc9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , matplotlib
5 , numpy
6 , pillow
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
10 , tensorflow
11 , torch
12 , torchvision
15 buildPythonPackage rec {
16   pname = "imgcat";
17   version = "0.5.0";
18   pyproject = true;
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "wookayin";
24     repo = "python-imgcat";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-LFXfCMWMdOjFYhXba9PCCIYnqR7gTRG63NAoC/nD2wk=";
27   };
29   postPatch = ''
30     substituteInPlace setup.py \
31       --replace-fail "'pytest-runner<5.0'" ""
32   '';
34   build-system = [
35     setuptools
36   ];
38   nativeCheckInputs = [
39     matplotlib
40     numpy
41     pillow
42     pytestCheckHook
43     tensorflow
44     torch
45     torchvision
46   ];
48   pythonImportsCheck = [
49     "imgcat"
50   ];
52   meta = with lib; {
53     description = "Imgcat in Python";
54     homepage = "https://github.com/wookayin/python-imgcat";
55     changelog = "https://github.com/wookayin/python-imgcat/releases/tag/v${version}";
56     license = licenses.mit;
57     maintainers = with maintainers; [ fab ];
58   };