about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hurry-filesize/default.nix
blob: 62bd1f810f9d51bf6c5f8069174fd9ac5b5c9ee4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchPypi

, pythonOlder

, setuptools
}:

buildPythonPackage rec {
  pname = "hurry-filesize";
  version = "0.9";
  pyproject = true;

  disabled = pythonOlder "3.3";

  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 = "A 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 ];
  };
}