2022-06-01 17:56:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hatchling
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-03-07 15:55:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bracex";
|
2022-06-01 17:56:59 +00:00
|
|
|
version = "2.3.post1";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-07 15:55:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-57I/yLLNBtPewGkrqr7LJJ3alOBqYXkB/wOmxW/XFpM=";
|
2021-03-07 15:55:27 +00:00
|
|
|
};
|
|
|
|
|
2022-06-01 17:56:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-03-07 15:55:27 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "bracex" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bash style brace expansion for Python";
|
|
|
|
homepage = "https://github.com/facelessuser/bracex";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|