about summary refs log tree commit diff
path: root/pkgs/development/python-modules/interface-meta/default.nix
blob: 04daece781e5e1ce7fec3e1eeb426b383d6671d1 (plain) (blame)
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
{ 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 ];
  };
}