Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / shiv / default.nix
blob57e67567c7c82c3b75b1222ae0b49f8bf935921d
1 { stdenv
2 , lib
3 , buildPythonPackage
4 , fetchPypi
5 , click
6 , pip
7 , setuptools
8 , wheel
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "shiv";
14   version = "1.0.4";
15   format = "pyproject";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-j2n3gXolRalMyOB6jsWXN1z4biwb0OWD7nU9bzH4UGA=";
20   };
22   propagatedBuildInputs = [ click pip setuptools wheel ];
24   pythonImportsCheck = [ "shiv" ];
26   nativeCheckInputs = [ pytestCheckHook ];
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   ];
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   };