646c172193
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
45 lines
798 B
Nix
45 lines
798 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, nose
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
, sqlalchemy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlalchemy-mixins";
|
|
version = "1.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "absent1706";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HZiv7F0/UatgY3KlILgzywrK5NJE/tDe6B8/smeYwlM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
sqlalchemy
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sqlalchemy_mixins"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python mixins for SQLAlchemy ORM";
|
|
homepage = "https://github.com/absent1706/sqlalchemy-mixins";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|