2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
poetry-core,
|
|
|
|
poetry-dynamic-versioning,
|
|
|
|
}:
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "interface-meta";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewwardrop";
|
|
|
|
repo = "interface_meta";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0rzh11wnab33b11391vc2ynf8ncxn22b12wn46lmgkrc5mqza8hd";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
patches = [ ./0001-fix-version.patch ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ poetry-dynamic-versioning ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|