Merge pull request #214429 from mweinelt/peewee-migrate

python3Packages.peewee-migrate: init at 1.6.6
This commit is contained in:
Martin Weinelt 2023-02-04 01:28:31 +00:00 committed by GitHub
commit 73b9fb8afa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# runtime
, cached-property
, click
, peewee
# tests
, psycopg2
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "peewee-migrate";
version = "1.6.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "klen";
repo = "peewee_migrate";
rev = "refs/tags/${version}";
hash = "sha256-gUtxsvPj8pwzijia313d553j9U2LP5vKJHxVU1SqsV8=";
};
postPatch = ''
sed -i '/addopts/d' setup.cfg
'';
propagatedBuildInputs = [
peewee
click
] ++ lib.optionals (pythonOlder "3.8") [
cached-property
];
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 ];
};
}

View file

@ -6979,6 +6979,8 @@ self: super: with self; {
peewee = callPackage ../development/python-modules/peewee { };
peewee-migrate = callPackage ../development/python-modules/peewee-migrate { };
pefile = callPackage ../development/python-modules/pefile { };
pelican = callPackage ../development/python-modules/pelican {