1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, click
6, pip
7, setuptools
8, wheel
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "shiv";
14 version = "1.0.4";
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-j2n3gXolRalMyOB6jsWXN1z4biwb0OWD7nU9bzH4UGA=";
20 };
21
22 propagatedBuildInputs = [ click pip setuptools wheel ];
23
24 pythonImportsCheck = [ "shiv" ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 disabledTests = [
29 # AssertionError
30 "test_hello_world"
31 "test_extend_pythonpath"
32 "test_multiple_site_packages"
33 "test_no_entrypoint"
34 "test_results_are_binary_identical_with_env_and_build_id"
35 "test_preamble"
36 "test_preamble_no_pip"
37 "test_alternate_root"
38 "test_alternate_root_environment_variable"
39 ];
40
41 meta = with lib; {
42 description = "Command line utility for building fully self contained Python zipapps";
43 homepage = "https://github.com/linkedin/shiv";
44 license = licenses.bsd2;
45 maintainers = with maintainers; [ prusnak ];
46 };
47}