depot/third_party/nixpkgs/pkgs/development/python-modules/interface-meta/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
poetry-core,
poetry-dynamic-versioning,
}:
buildPythonPackage rec {
pname = "interface-meta";
version = "1.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "matthewwardrop";
repo = "interface_meta";
rev = "v${version}";
sha256 = "0rzh11wnab33b11391vc2ynf8ncxn22b12wn46lmgkrc5mqza8hd";
};
patches = [ ./0001-fix-version.patch ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ poetry-dynamic-versioning ];
pythonImportsCheck = [ "interface_meta" ];
checkInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/matthewwardrop/interface_meta";
description = "Convenient way to expose an extensible API with enforced method signatures and consistent documentation";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ swflint ];
};
}