1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pex";
11 version = "2.7.0";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-tL+Roe2GHSVm6tIxIWXI6ek8rOMN8Ak2+Xe5ebn497E=";
19 };
20
21 build-system = [ hatchling ];
22
23 # A few more dependencies I don't want to handle right now...
24 doCheck = false;
25
26 pythonImportsCheck = [ "pex" ];
27
28 meta = with lib; {
29 description = "Python library and tool for generating .pex (Python EXecutable) files";
30 homepage = "https://github.com/pantsbuild/pex";
31 changelog = "https://github.com/pantsbuild/pex/releases/tag/v${version}";
32 license = licenses.asl20;
33 maintainers = with maintainers; [
34 copumpkin
35 phaer
36 ];
37 };
38}