Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "pipetools"; 11 version = "1.1.0"; 12 13 # Used github as the src since the pypi package does not include the tests 14 src = fetchFromGitHub { 15 owner = "0101"; 16 repo = pname; 17 rev = "6cba9fadab07a16fd85eed16d5cffc609f84c62b"; 18 hash = "sha256-BoZFePQCQfz1dkct5p/WQLuXoNX3eLcnKf3Mf0fG6u8="; 19 }; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 propagatedBuildInputs = [ setuptools ]; 24 25 pythonImportsCheck = [ "pipetools" ]; 26 27 meta = { 28 description = "Library that enables function composition similar to using Unix pipes"; 29 homepage = "https://0101.github.io/pipetools/"; 30 license = lib.licenses.mit; 31 }; 32}