1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pipe";
12 version = "2.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "JulienPalard";
19 repo = "Pipe";
20 tag = "v${version}";
21 hash = "sha256-/xMhh70g2KPOOivTjpAuyfu+Z44tBE5zAwpSIEKhK6M=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pipe" ];
29
30 disabledTests = [
31 # Test require network access
32 "test_netcat"
33 ];
34
35 meta = with lib; {
36 description = "Module to use infix notation";
37 homepage = "https://github.com/JulienPalard/Pipe";
38 changelog = "https://github.com/JulienPalard/Pipe/releases/tag/v${version}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ fab ];
41 };
42}