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