mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
43 lines
806 B
Nix
43 lines
806 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, callPackage
|
|
, flit
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flit-core";
|
|
inherit (flit) version;
|
|
format = "pyproject";
|
|
|
|
outputs = [
|
|
"out"
|
|
"testsout"
|
|
];
|
|
|
|
inherit (flit) src patches;
|
|
|
|
preConfigure = ''
|
|
cd flit_core
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir $testsout
|
|
cp -R ../tests $testsout/tests
|
|
'';
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with setuptools-scm
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
inherit flit;
|
|
pytest = callPackage ./tests.nix { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Distribution-building parts of Flit. See flit package for more information";
|
|
homepage = "https://github.com/pypa/flit";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fridh SuperSandro2000 ];
|
|
};
|
|
}
|