diff options
Diffstat (limited to 'pkgs/development/python-modules/item-synchronizer/default.nix')
-rw-r--r-- | pkgs/development/python-modules/item-synchronizer/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/item-synchronizer/default.nix b/pkgs/development/python-modules/item-synchronizer/default.nix new file mode 100644 index 0000000000000..5e8ecf2029956 --- /dev/null +++ b/pkgs/development/python-modules/item-synchronizer/default.nix @@ -0,0 +1,42 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + bidict, + bubop, +}: + +buildPythonPackage rec { + pname = "item-synchronizer"; + version = "1.1.5"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "bergercookie"; + repo = "item_synchronizer"; + rev = "v${version}"; + hash = "sha256-+mviKtCLlJhYV576Q07kcFJvtls5qohKSrqZtBqE/s4="; + }; + + postPatch = '' + substituteInPlace pyproject.toml --replace-fail 'bidict = "^0.21.4"' 'bidict = "^0.23"' + ''; + + nativeBuildInputs = [ poetry-core ]; + + propagatedBuildInputs = [ + bidict + bubop + ]; + + pythonImportsCheck = [ "item_synchronizer" ]; + + meta = with lib; { + description = ""; + homepage = "https://github.com/bergercookie/item_synchronizer"; + changelog = "https://github.com/bergercookie/item_synchronizer/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ raitobezarius ]; + }; +} |