2024-05-22 16:01:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
rustPlatform,
|
|
|
|
libiconv,
|
2023-11-23 12:00:36 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "regress";
|
2025-04-01 05:33:24 +02:00
|
|
|
version = "2025.3.1";
|
2023-11-23 12:00:36 +01:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2025-04-01 05:33:24 +02:00
|
|
|
hash = "sha256-x7qNFuUFPXc/SIZkwQGAmJ538kIotEbsmF7XbjrAWQE=";
|
2023-11-23 12:00:36 +01:00
|
|
|
};
|
|
|
|
|
2024-05-22 16:01:06 +02:00
|
|
|
nativeBuildInputs = with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
maturinBuildHook
|
|
|
|
];
|
2023-11-23 12:00:36 +01:00
|
|
|
|
2024-01-23 21:32:56 -08:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
|
|
|
|
2025-01-23 16:07:59 +01:00
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
2025-05-30 04:18:04 +02:00
|
|
|
inherit pname version src;
|
2025-04-01 05:33:24 +02:00
|
|
|
hash = "sha256-B652Bfanw51e+U6rHukWtfdr7bjoWDUx/nUczDwyzZk=";
|
2023-11-23 12:00:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-07 09:40:42 +02:00
|
|
|
description = "Python bindings to the Rust regress crate, exposing ECMA regular expressions";
|
2023-11-23 12:00:36 +01:00
|
|
|
homepage = "https://github.com/Julian/regress";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|