blob: 7a32efc1c0130b28f1ffb76d106b382ea853aeea (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pip,
pythonAtLeast,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pip-chill";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "rbanffy";
repo = "pip-chill";
rev = "refs/tags/v${version}";
hash = "sha256-oWq3UWBL5nsCBUkaElashZKvm7pN3StJNubgU++8YFs=";
};
build-system = [ setuptools ];
dependencies = lib.optionals (pythonAtLeast "3.12") [ setuptools ];
nativeCheckInputs = [
pip
pytestCheckHook
];
preCheck = ''
substituteInPlace tests/test_pip_chill.py \
--replace-fail "pip_chill/cli.py" "${placeholder "out"}/bin/pip-chill"
'';
pythonImportsCheck = [ "pip_chill" ];
meta = {
description = "A more relaxed `pip freeze`";
homepage = "https://github.com/rbanffy/pip-chill";
changelog = "https://github.com/rbanffy/pip-chill/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "pip-chill";
};
}
|