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

28 lines
660 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
2017-09-16 23:13:29 +02:00
buildPythonPackage rec {
pname = "schema";
2019-10-24 08:47:48 +02:00
version = "0.7.1";
2017-09-16 23:13:29 +02:00
src = fetchPypi {
inherit pname version;
2019-10-24 08:47:48 +02:00
sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959";
2017-09-16 23:13:29 +02:00
};
preConfigure = ''
substituteInPlace requirements.txt --replace '==' '>='
'';
propagatedBuildInputs = [ contextlib2 ];
checkInputs = [ pytest mock ];
checkPhase = "pytest ./test_schema.py";
2017-09-16 23:13:29 +02:00
meta = with stdenv.lib; {
description = "Library for validating Python data structures";
homepage = https://github.com/keleshev/schema;
license = licenses.mit;
};
}