2022-04-27 09:35:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, pip
|
|
|
|
, setuptools
|
|
|
|
, wheel
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shiv";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.0.6";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-4iJ2gTWXe+vftcDRp9/qKVV8VmtY0wDVuMJTXvIj13Y=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click pip setuptools wheel ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "shiv" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|