nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 six,
8}:
9
10buildPythonPackage rec {
11 pname = "funcparserlib";
12 version = "1.0.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "vlasovskikh";
17 repo = "funcparserlib";
18 rev = version;
19 hash = "sha256-LE9ItCaEzEGeahpM3M3sSnDBXEr6uX5ogEkO5x2Jgzc=";
20 };
21
22 nativeBuildInputs = [ poetry-core ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 six
27 ];
28
29 pythonImportsCheck = [ "funcparserlib" ];
30
31 meta = {
32 description = "Recursive descent parsing library based on functional combinators";
33 homepage = "https://github.com/vlasovskikh/funcparserlib";
34 license = lib.licenses.mit;
35 platforms = lib.platforms.unix;
36 };
37}