This reverts commit65a333600d. 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
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
backoff,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
gitpython,
|
|
pip,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "versionfinder";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jantman";
|
|
repo = "versionfinder";
|
|
rev = version;
|
|
hash = "sha256-aa2bRGn8Hn7gpEMUM7byh1qZVsqvJeMXomnwCj2Xu5o=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
gitpython
|
|
backoff
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pip
|
|
pytestCheckHook
|
|
requests
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Acceptance tests use the network
|
|
"versionfinder/tests/test_acceptance.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests are out-dated
|
|
"TestFindPipInfo"
|
|
];
|
|
|
|
pythonImportsCheck = [ "versionfinder" ];
|
|
|
|
meta = with lib; {
|
|
description = "Find the version of another package, whether installed via pip, setuptools or git";
|
|
homepage = "https://github.com/jantman/versionfinder";
|
|
changelog = "https://github.com/jantman/versionfinder/blob/${version}/CHANGES.rst";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ zakame ];
|
|
};
|
|
}
|