depot/third_party/nixpkgs/pkgs/development/python-modules/requirements-detector/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

52 lines
940 B
Nix

{ lib
, astroid
, buildPythonPackage
, fetchFromGitHub
, packaging
, poetry-core
, poetry-semver
, pytestCheckHook
, pythonOlder
, toml
}:
buildPythonPackage rec {
pname = "requirements-detector";
version = "1.0.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "landscapeio";
repo = pname;
rev = version;
hash = "sha256-AEXCguf5Q9lU5ygFJUlbc1F637hkQ0wJybbRK7uhB9s=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
astroid
packaging
poetry-semver
toml
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"requirements_detector"
];
meta = with lib; {
description = "Python tool to find and list requirements of a Python project";
homepage = "https://github.com/landscapeio/requirements-detector";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}