summary refs log tree commit diff
path: root/pkgs/development/python-modules/opsdroid_get_image_size/default.nix
blob: 0f33da44145f380892daf7aca1e4c2bbefcbde43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildPythonPackage, fetchPypi
}:

buildPythonPackage rec {
  pname = "opsdroid_get_image_size";
  version = "0.2.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "124j2xvfxv09q42qfb8nqlcn55y7f09iayrix3yfyrs2qyzav78a";
  };

  # test data not included on pypi
  doCheck = false;

  pythonImportsCheck = [ "get_image_size" ];

  meta = with lib; {
    description = "Get image width and height given a file path using minimal dependencies";
    license = licenses.mit;
    homepage = "https://github.com/opsdroid/image_size";
    maintainers = with maintainers; [ globin ];
  };
}