nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 setuptools-scm,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "stringparser";
13 version = "0.7";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "hgrecco";
18 repo = "stringparser";
19 tag = version;
20 hash = "sha256-gj0ooeb869JhlB9Mf5nBydiV2thTes8ys+BLJ516iSA=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [ typing-extensions ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "stringparser" ];
33
34 meta = {
35 description = "Easy to use pattern matching and information extraction";
36 homepage = "https://github.com/hgrecco/stringparser";
37 changelog = "https://github.com/hgrecco/stringparser/blob/${version}/CHANGES";
38 license = lib.licenses.bsd3;
39 maintainers = with lib.maintainers; [ evilmav ];
40 };
41}