mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
d6b063a6db
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Co-Authored-By: Victor Engmark <victor@engmark.name>
33 lines
775 B
Nix
33 lines
775 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, rustPlatform
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regress";
|
|
version = "0.4.5";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-tCrFBjkK6obzaYkYiJ3WQ5yi3KkC86/cbXCSnRRGZu8=";
|
|
};
|
|
|
|
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-wHObfXWgcbSYxk5d17s44+1qIGYD/Ygefxp+el0fsEc=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings to the Rust regress crate, exposing ECMA regular expressions.";
|
|
homepage = "https://github.com/Julian/regress";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
};
|
|
}
|