Files
nixpkgs/pkgs/development/python-modules/flit-core/default.nix
T
Theodore Ni 9613eec9ea python3.pkgs.flit-core: add python team to maintainers
Also add a changelog link.
2023-08-07 17:01:38 -07:00

44 lines
863 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";
changelog = "https://github.com/pypa/flit/blob/${src.rev}/doc/history.rst";
license = licenses.bsd3;
maintainers = teams.python.members;
};
}