evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / opsdroid-get-image-size / default.nix
blobe20545e9e51babd70f3e663198f99cf0af0f4689
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   setuptools,
7   versioneer,
8 }:
10 buildPythonPackage rec {
11   pname = "opsdroid-get-image-size";
12   version = "0.2.2";
13   pyproject = true;
15   disabled = pythonOlder "3.10";
17   src = fetchPypi {
18     pname = "opsdroid_get_image_size";
19     inherit version;
20     hash = "sha256-Cp2tvsdCZ+/86DF7FRNwx5diGcUWLYcFwQns7nYXkog=";
21   };
23   postPatch = ''
24     # Remove vendorized versioneer.py
25     rm versioneer.py
26   '';
28   build-system = [ setuptools ];
30   nativeBuildInputs = [ versioneer ];
32   # Test data not included on PyPI
33   doCheck = false;
35   pythonImportsCheck = [ "get_image_size" ];
37   meta = with lib; {
38     description = "Get image width and height given a file path using minimal dependencies";
39     homepage = "https://github.com/opsdroid/image_size";
40     changelog = "https://github.com/opsdroid/image_size/releases/tag/${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ globin ];
43     mainProgram = "get-image-size";
44   };