depot/third_party/nixpkgs/pkgs/development/python-modules/pony/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

42 lines
801 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "pony";
version = "0.7.17";
format = "setuptools";
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "ponyorm";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-wBqw+YHKlxYplgsYL1pbkusHyPfCaVPcH/Yku6WDYbE=";
};
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Tests are outdated
"test_method"
];
pythonImportsCheck = [
"pony"
];
meta = with lib; {
description = "Library for advanced object-relational mapping";
homepage = "https://ponyorm.org/";
license = licenses.asl20;
maintainers = with maintainers; [ d-goldin xvapx ];
};
}