git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #107727 from freezeboy/update-pydantic

python3Packages.pydantic: 1.5.1 -> 1.7.3

commiteb2913551fb152f2ff757c51a3f7fa9b058c4457 authorSandro <sandro.jaeckel@gmail.com> dateSun 27 Dec 2020, 16:37 (6 years ago) parent2c7caac494b842
1 file changed+4−11
pkgs/development/python-modules/pydantic/default.nix+4−11
pkgs/development/python-modules/pydantic/default.nix+4−11
@@ -1,7 +1,6 @@
11{ lib
22, buildPythonPackage
33, fetchFromGitHub
4−, fetchpatch
54, ujson
65, email_validator
76, typing-extensions
@@ -9,28 +8,21 @@
98, isPy3k
109, pytest
1110, pytestcov
11+, pytest-mock
1212}:
1313
1414buildPythonPackage rec {
1515 pname = "pydantic";
16− version = "1.5.1";
16+ version = "1.7.3";
1717 disabled = !isPy3k;
1818
1919 src = fetchFromGitHub {
2020 owner = "samuelcolvin";
2121 repo = pname;
2222 rev = "v${version}";
23− sha256 = "0fwrx7p6d5vskg9ibganahiz9y9299idvdmzhjw62jy84gn1vrb4";
23+ sha256 = "xihEDmly0vprmA+VdeCoGXg9PjWRPmBWAwk/9f2DLts=";
2424 };
2525
26− # fix tests, remove on next version bump
27− patches = [
28− (fetchpatch {
29− url = "https://github.com/samuelcolvin/pydantic/commit/a5b0e741e585040a0ab8b0be94dd9dc2dd3afcc7.patch";
30− sha256 = "0v91ac3dw23rm73370s2ns84vi0xqbfzpvj84zb7xdiicx8fhmf1";
31− })
32− ];
33−
3426 propagatedBuildInputs = [
3527 ujson
3628 email_validator
@@ -40,6 +32,7 @@ buildPythonPackage rec {
4032 checkInputs = [
4133 pytest
4234 pytestcov
35+ pytest-mock
4336 ];
4437
4538 checkPhase = ''