3778441227
Up until now this project was build using the setup.yp shim, that flit creates for tools that don't support PEP 517 yet. On top of that an implicit format implies setuptools and makes a call to `python setup.py install`, which is deprecated. Added some light reformatting on top.
43 lines
825 B
Nix
43 lines
825 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flit-core
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "buildcatrust";
|
|
version = "0.1.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256:0s0m0fy943dakw9cbd40h46qmrhhgrcp292kppyb34m6y27sbagy";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Non-hermetic, needs internet access (e.g. attempts to retrieve NSS store).
|
|
"buildcatrust/tests/test_nonhermetic.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"buildcatrust"
|
|
"buildcatrust.cli"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Build SSL/TLS trust stores";
|
|
homepage = "https://github.com/lukegb/buildcatrust";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lukegb ];
|
|
};
|
|
}
|