14 buildPythonPackage rec {
19 src = fetchFromGitHub {
20 owner = "thebigmunch";
22 rev = "refs/tags/${version}";
23 hash = "sha256-AEKawsAxDSDNkIaXEFFgdEBOY2PpASDrhlDrsnM5eyA=";
27 substituteInPlace pyproject.toml \
28 --replace 'poetry>=1.0.0' 'poetry-core' \
29 --replace 'poetry.masonry.api' 'poetry.core.masonry.api'
37 propagatedBuildInputs = [
52 disabledTests = lib.optionals stdenv.isDarwin [
53 # Skip on macOS because /etc/localtime is accessed through the pendulum
54 # library, which is not allowed in a sandboxed build.
55 "test_create_parser_filter_dates"
59 disabledTestPaths = lib.optionals stdenv.isDarwin [
60 # Skip on macOS because /etc/localtime is accessed through the pendulum
61 # library, which is not allowed in a sandboxed build.
62 "tests/test_datetime.py"
66 pythonImportsCheck = [
71 description = "A commonly-used set of utilities";
72 homepage = "https://github.com/thebigmunch/tbm-utils";
73 changelog = "https://github.com/thebigmunch/tbm-utils/blob/${version}/CHANGELOG.md";
74 license = [ lib.licenses.mit ];