You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
874 B

  1. { lib, buildPythonPackage, isPy3k, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
  2. buildPythonPackage rec {
  3. pname = "google-crc32c";
  4. version = "1.0.0";
  5. disabled = !isPy3k;
  6. src = fetchFromGitHub {
  7. owner = "googleapis";
  8. repo = "python-crc32c";
  9. rev = "v${version}";
  10. sha256 = "0n3ggsxmk1fhq0kz6p5rcj4gypfb05i26fcn7lsawakgl7fzxqyl";
  11. };
  12. buildInputs = [ crc32c ];
  13. propagatedBuildInputs = [ cffi ];
  14. LDFLAGS = "-L${crc32c}/lib";
  15. CFLAGS = "-I${crc32c}/include";
  16. checkInputs = [ pytestCheckHook crc32c ];
  17. pythonImportsCheck = [ "google_crc32c" ];
  18. meta = with lib; {
  19. homepage = "https://github.com/googleapis/python-crc32c";
  20. description = "Wrapper the google/crc32c hardware-based implementation of the CRC32C hashing algorithm";
  21. license = with licenses; [ asl20 ];
  22. maintainers = with maintainers; [ freezeboy ];
  23. };
  24. }