2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
|
2017-09-16 23:13:29 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
|
|
|
pname = "schema";
|
2021-02-20 10:09:16 +01:00
|
|
|
version = "0.7.4";
|
2017-09-16 23:13:29 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 10:09:16 +01:00
|
|
|
sha256 = "fbb6a52eb2d9facf292f233adcc6008cffd94343c63ccac9a1cb1f3e6de1db17";
|
2017-09-16 23:13:29 +02:00
|
|
|
};
|
|
|
|
|
2019-11-03 10:51:58 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace requirements.txt --replace '==' '>='
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ contextlib2 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
checkPhase = "pytest ./test_schema.py";
|
2017-09-16 23:13:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-16 23:13:29 +02:00
|
|
|
description = "Library for validating Python data structures";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/keleshev/schema";
|
2017-09-16 23:13:29 +02:00
|
|
|
license = licenses.mit;
|
2019-11-03 11:00:38 +01:00
|
|
|
maintainers = [ maintainers.tobim ];
|
2017-09-16 23:13:29 +02:00
|
|
|
};
|
|
|
|
}
|