nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 960 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 requests, 7 pytestCheckHook, 8 pytest-cov-stub, 9}: 10 11buildPythonPackage rec { 12 pname = "kiss-headers"; 13 version = "2.5.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "Ousret"; 18 repo = "kiss-headers"; 19 tag = version; 20 hash = "sha256-h0e7kFbn6qxIeSG85qetBg6IeSi/2YAaZLGS0+JH2g8="; 21 }; 22 23 nativeBuildInputs = [ hatchling ]; 24 25 propagatedBuildInputs = [ requests ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 pytest-cov-stub 30 ]; 31 32 preCheck = '' 33 rm -rf src # cause pycache conflict 34 ''; 35 36 disabledTestPaths = [ 37 # Tests require internet access 38 "tests/test_serializer.py" 39 "tests/test_with_http_request.py" 40 ]; 41 42 pythonImportsCheck = [ "kiss_headers" ]; 43 44 meta = { 45 description = "Python package for HTTP/1.1 style headers"; 46 homepage = "https://github.com/Ousret/kiss-headers"; 47 license = lib.licenses.mit; 48 maintainers = [ ]; 49 }; 50}