blob: 599a23fe244e2d97c70f233b6956e8a04a713d2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
poetry-core,
poetry-dynamic-versioning,
}:
buildPythonPackage rec {
pname = "interface-meta";
version = "1.3.0";
pyproject = true;
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 ];
};
}
|