Skip to content

Commit

Permalink
python312Packages.braceexpand: modernize, adopt (NixOS#343142)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Sep 20, 2024
2 parents 67d9b47 + 026eb8e commit fd32be7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkgs/development/python-modules/braceexpand/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "braceexpand";
version = "0.1.7";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.8";

Expand All @@ -18,15 +19,20 @@ buildPythonPackage rec {
sha256 = "01gpcnksnqv6np28i4x8s3wkngawzgs99zvjfia57spa42ykkrg6";
};

build-system = [ setuptools ];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "braceexpand" ];

meta = with lib; {
meta = {
description = "Bash-style brace expansion for Python";
homepage = "https://github.com/trendels/braceexpand";
changelog = "https://github.com/trendels/braceexpand/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ newam ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
newam
pbsds
];
};
}

0 comments on commit fd32be7

Please sign in to comment.