2019-12-28 08:57:53 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# pythonPackages
|
2020-01-10 06:50:21 +00:00
|
|
|
, astroid
|
2019-12-28 08:57:53 +00:00
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requirements-detector";
|
|
|
|
version = "0.6";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-01-10 06:50:21 +00:00
|
|
|
owner = "landscapeio";
|
2019-12-28 08:57:53 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-01-10 06:50:21 +00:00
|
|
|
sha256 = "1sfmm7daz0kpdx6pynsvi6qlfhrzxx783l1wb69c8dfzya4xssym";
|
2019-12-28 08:57:53 +00:00
|
|
|
};
|
|
|
|
|
2020-01-10 06:50:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astroid
|
|
|
|
];
|
|
|
|
|
2019-12-28 08:57:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python tool to find and list requirements of a Python project";
|
|
|
|
homepage = "https://github.com/landscapeio/requirements-detector";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|