nixpkgs/pkgs/development/python-modules/schema/default.nix

29 lines
693 B
Nix
Raw Normal View History

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