2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, backoff
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, GitPython
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "versionfinder";
|
|
|
|
version = "1.1.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jantman";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "16mvjwyhmw39l8by69dgr9b9jnl7yav36523lkh7w7pwd529pbb9";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
GitPython
|
|
|
|
backoff
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-10-17 09:34:42 +00:00
|
|
|
pytestCheckHook
|
2021-10-17 02:12:59 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
disabledTestPaths = [
|
2022-01-13 20:06:32 +00:00
|
|
|
# Acceptance tests use the network
|
2021-10-17 09:34:42 +00:00
|
|
|
"versionfinder/tests/test_acceptance.py"
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests are out-dated
|
|
|
|
"TestFindPipInfo"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"versionfinder"
|
|
|
|
];
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find the version of another package, whether installed via pip, setuptools or git";
|
|
|
|
homepage = "https://github.com/jantman/versionfinder";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ zakame ];
|
|
|
|
};
|
|
|
|
}
|