nixpkgs/pkgs/development/python-modules/interface-meta/default.nix
Michael Daniels 075e8c2c4f
treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

39 lines
918 B
Nix

{
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 ];
};
}