Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 665 B view raw
1{ 2 buildPythonPackage, 3 fetchPypi, 4 lib, 5 nose, 6 six, 7 typing ? null, 8 isPy27, 9}: 10 11buildPythonPackage rec { 12 pname = "class-registry"; 13 version = "2.1.2"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0zjf9nczl1ifzj07bgs6mwxsfd5xck9l0lchv2j0fv2n481xp2v7"; 18 }; 19 20 propagatedBuildInputs = [ six ] ++ lib.optional isPy27 typing; 21 checkInputs = [ nose ]; 22 23 # Tests currently failing. 24 doCheck = false; 25 26 meta = { 27 description = "Factory+Registry pattern for Python classes."; 28 homepage = "https://class-registry.readthedocs.io/en/latest/"; 29 license = lib.licenses.mit; 30 maintainers = with lib.maintainers; [ kevincox ]; 31 }; 32}