1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "hurry-filesize";
10 version = "0.9";
11 pyproject = true;
12
13 src = fetchPypi {
14 pname = "hurry.filesize";
15 inherit version;
16 hash = "sha256-9TaDKa2++GrM07yUkFIjQLt5JgRVromxpCwQ9jgBuaY=";
17 };
18
19 # project has no repo...
20 # fix implicit namespaces (PEP 420) warning
21 patches = [ ./use-pep-420-implicit-namespace-package.patch ];
22
23 build-system = [ setuptools ];
24
25 pythonImportsCheck = [ "hurry.filesize" ];
26
27 meta = with lib; {
28 description = "Simple Python library for human readable file sizes (or anything sized in bytes)";
29 homepage = "https://pypi.org/project/hurry.filesize/";
30 license = licenses.zpl21;
31 maintainers = with maintainers; [ vizid ];
32 };
33}