Files
nixpkgs/pkgs/development/python-modules/hurry-filesize/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

34 lines
780 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "hurry-filesize";
version = "0.9";
pyproject = true;
src = fetchPypi {
pname = "hurry.filesize";
inherit version;
hash = "sha256-9TaDKa2++GrM07yUkFIjQLt5JgRVromxpCwQ9jgBuaY=";
};
# project has no repo...
# fix implicit namespaces (PEP 420) warning
patches = [ ./use-pep-420-implicit-namespace-package.patch ];
build-system = [ setuptools ];
pythonImportsCheck = [ "hurry.filesize" ];
meta = {
description = "Simple Python library for human readable file sizes (or anything sized in bytes)";
homepage = "https://pypi.org/project/hurry.filesize/";
license = lib.licenses.zpl21;
maintainers = with lib.maintainers; [ vizid ];
};
}