git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.google-re2: add pythonImportsCheck
commitacae74c7aea0da60be49f4be6f9e7e895ffc1476 authorFabian Affolter <mail@fabian-affolter.ch> dateSat 2 Apr 2022, 22:37 (5 years ago) parent60df4bd
1 file changed+21−6
pkgs/development/python-modules/google-re2/default.nix+21−6
pkgs/development/python-modules/google-re2/default.nix+21−6
@@ -1,23 +1,38 @@
1−{ lib, buildPythonPackage, pythonOlder, fetchPypi, pybind11, re2, six }:
1+{ lib
2+, buildPythonPackage
3+, pythonOlder
4+, fetchPypi
5+, pybind11
6+, re2
7+, six
8+}:
29
310buildPythonPackage rec {
411 pname = "google-re2";
512 version = "0.2.20220401";
6− disabled = pythonOlder "3.6";
13+ format = "setuptools";
14+
15+ disabled = pythonOlder "3.7";
716
817 src = fetchPypi {
918 inherit pname version;
10− sha256 = "sha256-v3G+MvFV8gq9LJqj/zrtlTjRm0ZNxTh0UdQSPiwFHY4=";
19+ hash = "sha256-v3G+MvFV8gq9LJqj/zrtlTjRm0ZNxTh0UdQSPiwFHY4=";
1120 };
1221
1322 propagatedBuildInputs = [
14− pybind11 re2 six
23+ pybind11
24+ re2
25+ six
26+ ];
27+
28+ pythonImportsCheck = [
29+ "re2"
1530 ];
1631
1732 meta = with lib; {
1833 description = "RE2 Python bindings";
19− homepage = "https://github.com/google/re2";
20− license = licenses.bsd3;
34+ homepage = "https://github.com/google/re2";
35+ license = licenses.bsd3;
2136 maintainers = with maintainers; [ alexbakker ];
2237 };
2338}