1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry-core, poetry-dynamic-versioning }:
2
3buildPythonPackage rec {
4 pname = "interface-meta";
5 version = "1.3.0";
6
7 format = "pyproject";
8
9 src = fetchFromGitHub {
10 owner = "matthewwardrop";
11 repo = "interface_meta";
12 rev = "v${version}";
13 sha256 = "0rzh11wnab33b11391vc2ynf8ncxn22b12wn46lmgkrc5mqza8hd";
14 };
15
16 patches = [
17 ./0001-fix-version.patch
18 ];
19
20 nativeBuildInputs = [
21 poetry-core
22 ];
23
24 propagatedBuildInputs = [
25 poetry-dynamic-versioning
26 ];
27
28 pythonImportsCheck = [ "interface_meta" ];
29
30 checkInputs = [ pytestCheckHook ];
31
32 meta = {
33 homepage = "https://github.com/matthewwardrop/interface_meta";
34 description = "Convenient way to expose an extensible API with enforced method signatures and consistent documentation";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ swflint ];
37 };
38}