Files
nixpkgs/pkgs/development/python-modules/flit/default.nix
T
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

72 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
flit-core,
# dependencies
docutils,
pip,
requests,
tomli-w,
# tests
pytestCheckHook,
testpath,
responses,
}:
# Flit is actually an application to build universal wheels.
# It requires Python 3 and should eventually be moved outside of
# python-packages.nix. When it will be used to build wheels,
# care should be taken that there is no mingling of PYTHONPATH.
buildPythonPackage rec {
pname = "flit";
version = "3.11.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pypa";
repo = "flit";
rev = version;
hash = "sha256-AK5iuR1l/i2Cgj8D4CnyV6mQkSNbFw4sHGQF2OdwNkU=";
};
build-system = [ flit-core ];
dependencies = [
docutils
flit-core
pip
requests
tomli-w
];
nativeCheckInputs = [
pytestCheckHook
testpath
responses
];
disabledTests = [
# needs some ini file.
"test_invalid_classifier"
# calls pip directly. disabled for PEP 668
"test_install_data_dir"
"test_install_module_pep621"
"test_symlink_data_dir"
"test_symlink_module_pep621"
];
meta = with lib; {
changelog = "https://github.com/pypa/flit/blob/${version}/doc/history.rst";
description = "Simple packaging tool for simple packages";
mainProgram = "flit";
homepage = "https://github.com/pypa/flit";
license = licenses.bsd3;
};
}