depot/third_party/nixpkgs/pkgs/development/python-modules/schema/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

28 lines
693 B
Nix

{ lib, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
buildPythonPackage rec {
pname = "schema";
version = "0.7.5";
src = fetchPypi {
inherit pname version;
sha256 = "f06717112c61895cabc4707752b88716e8420a8819d71404501e114f91043197";
};
preConfigure = ''
substituteInPlace requirements.txt --replace '==' '>='
'';
propagatedBuildInputs = [ contextlib2 ];
checkInputs = [ pytest mock ];
checkPhase = "pytest ./test_schema.py";
meta = with lib; {
description = "Library for validating Python data structures";
homepage = "https://github.com/keleshev/schema";
license = licenses.mit;
maintainers = [ maintainers.tobim ];
};
}