pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / regress / default.nix
blobe59496b767d125430f212c6fe227e70c402a8b50
2   lib,
3   stdenv,
4   fetchPypi,
5   buildPythonPackage,
6   rustPlatform,
7   libiconv,
8 }:
10 buildPythonPackage rec {
11   pname = "regress";
12   version = "0.4.5";
14   format = "pyproject";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-tCrFBjkK6obzaYkYiJ3WQ5yi3KkC86/cbXCSnRRGZu8=";
19   };
21   nativeBuildInputs = with rustPlatform; [
22     cargoSetupHook
23     maturinBuildHook
24   ];
26   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
28   cargoDeps = rustPlatform.fetchCargoTarball {
29     inherit src;
30     name = "${pname}-${version}";
31     hash = "sha256-wHObfXWgcbSYxk5d17s44+1qIGYD/Ygefxp+el0fsEc=";
32   };
34   meta = with lib; {
35     description = "Python bindings to the Rust regress crate, exposing ECMA regular expressions";
36     homepage = "https://github.com/Julian/regress";
37     license = licenses.mit;
38     maintainers = [ maintainers.matthiasbeyer ];
39   };