depot/third_party/nixpkgs/pkgs/development/python-modules/peewee-migrate/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

58 lines
935 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build-system
, poetry-core
# runtime
, click
, peewee
# tests
, psycopg2
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "peewee-migrate";
version = "1.10.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "klen";
repo = "peewee_migrate";
rev = "refs/tags/${version}";
hash = "sha256-SBHeXHfhYjyXr+tODryKQfxZKy7l4ez5C6eU6FjS2qI=";
};
nativeBuildInputs = [
poetry-core
];
postPatch = ''
sed -i '/addopts/d' pyproject.toml
'';
propagatedBuildInputs = [
peewee
click
];
pythonImportsCheck = [
"peewee_migrate"
];
nativeCheckInputs = [
psycopg2
pytestCheckHook
];
meta = with lib; {
description = "Simple migration engine for Peewee";
homepage = "https://github.com/klen/peewee_migrate";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}