summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pipetools/default.nix
blob: fb45e2a7248d1fdab5d6ec4405a68b91a870ef13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage {
  pname = "pipetools";
  version = "1.1.0";
  format = "setuptools";

  # Used github as the src since the pypi package does not include the tests
  src = fetchFromGitHub {
    owner = "0101";
    repo = "pipetools";
    rev = "6cba9fadab07a16fd85eed16d5cffc609f84c62b";
    hash = "sha256-BoZFePQCQfz1dkct5p/WQLuXoNX3eLcnKf3Mf0fG6u8=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  propagatedBuildInputs = [ setuptools ];

  pythonImportsCheck = [ "pipetools" ];

  meta = {
    description = "Library that enables function composition similar to using Unix pipes";
    homepage = "https://0101.github.io/pipetools/";
    license = lib.licenses.mit;
  };
}