Merge pull request #214429 from mweinelt/peewee-migrate
python3Packages.peewee-migrate: init at 1.6.6
This commit is contained in:
commit
73b9fb8afa
54
pkgs/development/python-modules/peewee-migrate/default.nix
Normal file
54
pkgs/development/python-modules/peewee-migrate/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue