nixpkgs/pkgs/development/python-modules/sorl_thumbnail/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

29 lines
657 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools-scm
}:
buildPythonPackage rec {
pname = "sorl-thumbnail";
version = "12.9.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-DLwvUhUufyJm48LLSuXYOv0ulv1eHELlZnNiuqo9LbM=";
};
nativeBuildInputs = [ setuptools-scm ];
# Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl.
doCheck = false;
meta = with lib; {
homepage = "https://sorl-thumbnail.readthedocs.org/en/latest/";
description = "Thumbnails for Django";
license = licenses.bsd3;
};
}