nixpkgs/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix

47 lines
953 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, marshmallow
, packaging
, sqlalchemy
, pytest-lazy-fixture
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "marshmallow-sqlalchemy";
version = "0.29.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-NSOndDkO8MHA98cIp1GYCcU5bPYIcg8U9Vw290/1u+w=";
};
propagatedBuildInputs = [
marshmallow
packaging
sqlalchemy
];
pythonImportsCheck = [
"marshmallow_sqlalchemy"
];
nativeCheckInputs = [
pytest-lazy-fixture
pytestCheckHook
];
meta = with lib; {
description = "SQLAlchemy integration with marshmallow";
homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy";
changelog = "https://github.com/marshmallow-code/marshmallow-sqlalchemy/blob/${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}