hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / development / python-modules / bitmath / default.nix
blobdab0477350b7e538211ab4041d0652453bac2895
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   isPy3k,
6   progressbar231 ? null,
7   progressbar33,
8   mock,
9 }:
11 buildPythonPackage rec {
12   pname = "bitmath";
13   version = "1.3.3.1";
14   format = "setuptools";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "293325f01e65defe966853111df11d39215eb705a967cb115851da8c4cfa3eb8";
19   };
21   nativeCheckInputs = [
22     (if isPy3k then progressbar33 else progressbar231)
23     mock
24   ];
26   meta = with lib; {
27     description = "Module for representing and manipulating file sizes with different prefix";
28     mainProgram = "bitmath";
29     homepage = "https://github.com/tbielawa/bitmath";
30     license = licenses.mit;
31     maintainers = with maintainers; [ twey ];
32   };