Files
nixpkgs/pkgs/development/python-modules/opsdroid-get-image-size/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
979 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
versioneer,
}:
buildPythonPackage rec {
pname = "opsdroid-get-image-size";
version = "0.2.2";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
pname = "opsdroid_get_image_size";
inherit version;
hash = "sha256-Cp2tvsdCZ+/86DF7FRNwx5diGcUWLYcFwQns7nYXkog=";
};
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
build-system = [ setuptools ];
nativeBuildInputs = [ versioneer ];
# Test data not included on PyPI
doCheck = false;
pythonImportsCheck = [ "get_image_size" ];
meta = {
description = "Get image width and height given a file path using minimal dependencies";
homepage = "https://github.com/opsdroid/image_size";
changelog = "https://github.com/opsdroid/image_size/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "get-image-size";
};
}