depot/third_party/nixpkgs/pkgs/development/python-modules/shiv/default.nix
Default email c3ac4d4040 Project import generated by Copybara.
GitOrigin-RevId: 1158501e7c7cba26d922723cf9f70099995eb755
2022-09-14 15:05:37 -03:00

47 lines
1 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, click
, pip
, setuptools
, wheel
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "shiv";
version = "1.0.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BDSfgXSythWUrwVnsg27rHN0nsfumFdX/2e62h239UY=";
};
propagatedBuildInputs = [ click pip setuptools wheel ];
pythonImportsCheck = [ "shiv" ];
checkInputs = [ 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 = with lib; {
description = "Command line utility for building fully self contained Python zipapps";
homepage = "https://github.com/linkedin/shiv";
license = licenses.bsd2;
maintainers = with maintainers; [ prusnak ];
};
}