mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
782 B
Nix
34 lines
782 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 = with lib; {
|
|
description = "Simple Python library for human readable file sizes (or anything sized in bytes)";
|
|
homepage = "https://pypi.org/project/hurry.filesize/";
|
|
license = licenses.zpl21;
|
|
maintainers = with maintainers; [ vizid ];
|
|
};
|
|
}
|