e7f069c37c
GitOrigin-RevId: 467ce5a9f45aaf96110b41eb863a56866e1c2c3c
28 lines
703 B
Nix
28 lines
703 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "schema";
|
|
version = "0.7.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b536f2375b49fdf56f36279addae98bd86a8afbd58b3c32ce363c464bed5fc1c";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace requirements.txt --replace '==' '>='
|
|
'';
|
|
|
|
propagatedBuildInputs = [ contextlib2 ];
|
|
|
|
checkInputs = [ pytest mock ];
|
|
checkPhase = "pytest ./test_schema.py";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library for validating Python data structures";
|
|
homepage = "https://github.com/keleshev/schema";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.tobim ];
|
|
};
|
|
}
|