Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 28 lines 701 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }: 2 3buildPythonPackage rec { 4 5 pname = "schema"; 6 version = "0.7.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959"; 11 }; 12 13 preConfigure = '' 14 substituteInPlace requirements.txt --replace '==' '>=' 15 ''; 16 17 propagatedBuildInputs = [ contextlib2 ]; 18 19 checkInputs = [ pytest mock ]; 20 checkPhase = "pytest ./test_schema.py"; 21 22 meta = with stdenv.lib; { 23 description = "Library for validating Python data structures"; 24 homepage = https://github.com/keleshev/schema; 25 license = licenses.mit; 26 maintainers = [ maintainers.tobim ]; 27 }; 28}