python3Packages.orm: 0.1.5 -> 0.3.1

This commit is contained in:
Fabian Affolter 2022-01-08 12:34:34 +01:00 committed by Jonathan Ringer
parent cf62e9c07a
commit 6f99ebff74

View File

@ -1,43 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, databases
, typesystem
, aiomysql
, aiosqlite
, pytestCheckHook
, pytest-cov
, typing-extensions
, asyncpg
, buildPythonPackage
, databases
, fetchFromGitHub
, pythonOlder
, typesystem
}:
buildPythonPackage rec {
pname = "orm";
version = "0.1.5";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "encode";
repo = "orm";
rev = version;
sha256 = "1g70cr0559iyqfzidwh6n2qq6d4dcnrr4sg0jkn1s4qzka828mj7";
hash = "sha256-nlKEWdqttFnjBnXutlxTy9oILqFzKHKKPJpTtCUbJ5k=";
};
propagatedBuildInputs = [
aiomysql
aiosqlite
asyncpg
databases
typesystem
];
checkInputs = [
aiosqlite
pytestCheckHook
pytest-cov
typing-extensions
];
postPatch = ''
substituteInPlace setup.py \
--replace "typesystem==0.3.1" "typesystem"
'';
pythonImportsCheck = [ "orm" ];
# Tests require databases
doCheck = false;
pythonImportsCheck = [
"orm"
];
meta = with lib; {
description = "An async ORM";
homepage = "https://github.com/encode/orm";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}