depot/third_party/nixpkgs/pkgs/development/python-modules/pydantic/default.nix
Default email bb1914a1ab Project import generated by Copybara.
GitOrigin-RevId: 733e537a8ad76fd355b6f501127f7d0eb8861775
2020-12-29 10:07:52 -05:00

48 lines
838 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, ujson
, email_validator
, typing-extensions
, python
, isPy3k
, pytest
, pytestcov
, pytest-mock
}:
buildPythonPackage rec {
pname = "pydantic";
version = "1.7.3";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "v${version}";
sha256 = "xihEDmly0vprmA+VdeCoGXg9PjWRPmBWAwk/9f2DLts=";
};
propagatedBuildInputs = [
ujson
email_validator
typing-extensions
];
checkInputs = [
pytest
pytestcov
pytest-mock
];
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = "https://github.com/samuelcolvin/pydantic";
description = "Data validation and settings management using Python type hinting";
license = licenses.mit;
maintainers = with maintainers; [ wd15 ];
};
}