My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/humanize/default.nix

47 lines
818 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools-scm
, setuptools
, pytestCheckHook
, freezegun
}:
buildPythonPackage rec {
version = "4.0.0";
pname = "humanize";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jmoiron";
repo = pname;
rev = version;
sha256 = "sha256-v4OdZmUI2LCick4qCSGOHJ7jtWybwKTeTeIcly+QQQQ=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
setuptools
];
checkInputs = [
freezegun
pytestCheckHook
];
meta = with lib; {
description = "Python humanize utilities";
homepage = "https://github.com/jmoiron/humanize";
license = licenses.mit;
maintainers = with maintainers; [ rmcgibbo ];
};
}