blob: 5c6e425ecd88450b5961cea1e43f872bf997178b (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchPypi,
click,
pip,
setuptools,
wheel,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "shiv";
version = "1.0.8";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-KmjWnpjOgctbj9r7/B4n76k+bYnKFL+uM0guQXb1YdY=";
};
propagatedBuildInputs = [
click
pip
setuptools
wheel
];
pythonImportsCheck = [ "shiv" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# AssertionError
"test_hello_world"
"test_extend_pythonpath"
"test_multiple_site_packages"
"test_no_entrypoint"
"test_results_are_binary_identical_with_env_and_build_id"
"test_preamble"
"test_preamble_no_pip"
"test_alternate_root"
"test_alternate_root_environment_variable"
];
meta = {
description = "Command line utility for building fully self contained Python zipapps";
homepage = "https://github.com/linkedin/shiv";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ prusnak ];
};
}
|