about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pipetools/default.nix
blob: 9003f61b28e894fd0dcf723afdd281f9dd1f86d5 (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pipetools";
  version = "1.1.0";

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

  nativeCheckInputs = [ pytestCheckHook ];

  propagatedBuildInputs = [ setuptools ];

  pythonImportsCheck = [ "pipetools" ];

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