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

29 lines
701 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
2017-09-16 22:13:29 +01:00
buildPythonPackage rec {
pname = "schema";
2019-10-24 07:47:48 +01:00
version = "0.7.1";
2017-09-16 22:13:29 +01:00
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:48 +01:00
sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959";
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 stdenv.lib; {
description = "Library for validating Python data structures";
homepage = https://github.com/keleshev/schema;
license = licenses.mit;
maintainers = [ maintainers.tobim ];
2017-09-16 22:13:29 +01:00
};
}