2020-05-09 11:34:00 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-08-27 02:35:00 +02:00
|
|
|
, callPackage
|
2020-05-09 11:34:00 +02:00
|
|
|
, flit
|
2020-11-29 15:04:28 +01:00
|
|
|
, toml
|
2020-05-09 11:34:00 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flit-core";
|
2021-03-24 16:01:22 +01:00
|
|
|
version = "3.2.0";
|
2020-05-09 11:34:00 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-08-27 02:35:00 +02:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"testsout"
|
|
|
|
];
|
|
|
|
|
2020-11-29 15:04:28 +01:00
|
|
|
inherit (flit) src patches;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd flit_core
|
|
|
|
'';
|
2020-05-09 11:34:00 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-11-29 15:04:28 +01:00
|
|
|
toml
|
2020-05-09 11:34:00 +02:00
|
|
|
];
|
|
|
|
|
2021-08-27 02:35:00 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir $testsout
|
|
|
|
cp -R ../tests $testsout/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with setuptools-scm
|
|
|
|
doCheck = false;
|
2021-03-24 16:01:22 +01:00
|
|
|
|
2020-05-09 11:34:00 +02:00
|
|
|
passthru.tests = {
|
|
|
|
inherit flit;
|
2021-08-27 02:35:00 +02:00
|
|
|
pytest = callPackage ./tests.nix { };
|
2020-05-09 11:34:00 +02:00
|
|
|
};
|
|
|
|
|
2021-08-27 02:35:00 +02:00
|
|
|
meta = with lib; {
|
2020-05-09 11:34:00 +02:00
|
|
|
description = "Distribution-building parts of Flit. See flit package for more information";
|
|
|
|
homepage = "https://github.com/takluyver/flit";
|
2021-08-27 02:35:00 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fridh SuperSandro2000 ];
|
2020-05-09 11:34:00 +02:00
|
|
|
};
|
2020-06-01 10:59:41 +02:00
|
|
|
}
|