cript0nauta / pynixify

Nix expression generator for Python projects
GNU General Public License v3.0
66 stars 11 forks source link

Resolving xarray-spatial and avro #41

Open InLaw opened 4 years ago

InLaw commented 4 years ago

besides those packages:

json2json
avro
jq
json2sql
overpy2

there are issues with:

brotli
daiquiri
dash
dbt
dictdiffer
flask-compress
google-crc32c
hunter
jq
orange3 (orange-canvas-core/orange-widget-base)
py-spy
tensorflow/tensorboard-plugin-wit
xarray-spatial

brotli these derivations will be built: /nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv building '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv'... unpacking sources unpacking source archive /nix/store/2ka9wc6prqjd4427423xa6zwdr4234p7-x3cvky5ymmkla225hvrn2sc9viyn1v5j-source source root is x3cvky5ymmkla225hvrn2sc9viyn1v5j-source patching sources configuring configure flags: --prefix=/nix/store/bylflpdqfz5cpaq7r27i1rgdnnl32z9b-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source /nix/store/ds7r5c4z1vzrm0jw7ay712zs59p64hf7-stdenv-linux/setup: ./configure: /usr/bin/env: bad interpreter: No such file or directory builder for '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv' failed with exit code 126 error: --- Error --- nix-build build of '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv' failed

Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 197, in _main_async for req in all_requirements File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 104, in require reqs: PackageRequirements = await self.evaluate_requirements(pkg) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 146, in evaluate_package_requirements return await eval_path_requirements(src) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/package_requirements.py", line 67, in eval_path_requirements str(path.resolve()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 146, in run_nix_build return await _run_nix_build(*args, retries=retries, max_retries=5) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 129, in _run_nix_build raise NixBuildError(f'nix-build failed with code {status}') pynixify.exceptions.NixBuildError: nix-build failed with code 100

daiquiri Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async for package in version_chooser.all_pypi_packages() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression meta = await package.metadata() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata self.version = Version(version) File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in init match = self._regex.search(version) TypeError: expected string or bytes-like object

dash these derivations will be built: /nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv building '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv'... unpacking sources unpacking source archive /nix/store/2ka9wc6prqjd4427423xa6zwdr4234p7-x3cvky5ymmkla225hvrn2sc9viyn1v5j-source source root is x3cvky5ymmkla225hvrn2sc9viyn1v5j-source patching sources configuring configure flags: --prefix=/nix/store/bylflpdqfz5cpaq7r27i1rgdnnl32z9b-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source /nix/store/ds7r5c4z1vzrm0jw7ay712zs59p64hf7-stdenv-linux/setup: ./configure: /usr/bin/env: bad interpreter: No such file or directory builder for '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv' failed with exit code 126 error: --- Error --- nix-build build of '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv' failed

/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/unix_events.py:878: RuntimeWarning: A loop is being detached from a child watcher with pending handlers RuntimeWarning) Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 197, in _main_async for req in all_requirements File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 113, in require reqs.build_requirements) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 113, in require reqs.build_requirements) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 104, in require reqs: PackageRequirements = await self.evaluate_requirements(pkg) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 146, in evaluate_package_requirements return await eval_path_requirements(src) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/package_requirements.py", line 67, in eval_path_requirements str(path.resolve()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 146, in run_nix_build return await _run_nix_build(*args, retries=retries, max_retries=5) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 129, in _run_nix_build raise NixBuildError(f'nix-build failed with code {status}') pynixify.exceptions.NixBuildError: nix-build failed with code 100

dictdiffer Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async for package in version_chooser.all_pypi_packages() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression meta = await package.metadata() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata self.version = Version(version) File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in init match = self._regex.search(version) TypeError: expected string or bytes-like object

flask-compress these derivations will be built: /nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv building '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv'... unpacking sources unpacking source archive /nix/store/2ka9wc6prqjd4427423xa6zwdr4234p7-x3cvky5ymmkla225hvrn2sc9viyn1v5j-source source root is x3cvky5ymmkla225hvrn2sc9viyn1v5j-source patching sources configuring configure flags: --prefix=/nix/store/bylflpdqfz5cpaq7r27i1rgdnnl32z9b-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source /nix/store/ds7r5c4z1vzrm0jw7ay712zs59p64hf7-stdenv-linux/setup: ./configure: /usr/bin/env: bad interpreter: No such file or directory builder for '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv' failed with exit code 126 error: --- Error --- nix-build build of '/nix/store/lisyvp1xlqnn3wczixxyc79g0hdcfk07-setup.py_data_x3cvky5ymmkla225hvrn2sc9viyn1v5j-source.drv' failed

/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/unix_events.py:878: RuntimeWarning: A loop is being detached from a child watcher with pending handlers RuntimeWarning) Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 197, in _main_async for req in all_requirements File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 113, in require reqs.build_requirements) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 104, in require reqs: PackageRequirements = await self.evaluate_requirements(pkg) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 146, in evaluate_package_requirements return await eval_path_requirements(src) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/package_requirements.py", line 67, in eval_path_requirements str(path.resolve()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 146, in run_nix_build return await _run_nix_build(*args, retries=retries, max_retries=5) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 129, in _run_nix_build raise NixBuildError(f'nix-build failed with code {status}') pynixify.exceptions.NixBuildError: nix-build failed with code 100

google-crc32c Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async for package in version_chooser.all_pypi_packages() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression meta = await package.metadata() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata self.version = Version(version) File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in init match = self._regex.search(version) TypeError: expected string or bytes-like object

hunter Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async for package in version_chooser.all_pypi_packages() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression meta = await package.metadata() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata self.version = Version(version) File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in init match = self._regex.search(version) TypeError: expected string or bytes-like object

jq error: --- AttrPathNotFound --- nix-build attribute 'src' in selection path 'python3Packages."jq".src' not found

Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 197, in _main_async for req in all_requirements File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 104, in require reqs: PackageRequirements = await self.evaluate_requirements(pkg) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 145, in evaluate_package_requirements src = await pkg.source(extra_args) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 51, in source return await run_nix_build(args) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 146, in run_nix_build return await _run_nix_build(args, retries=retries, max_retries=5) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/nixpkgs_sources.py", line 129, in _run_nix_build raise NixBuildError(f'nix-build failed with code {status}') pynixify.exceptions.NixBuildError: nix-build failed with code 1

orange3 warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy /nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/unix_events.py:878: RuntimeWarning: A loop is being detached from a child watcher with pending handlers RuntimeWarning) Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async for package in version_chooser.all_pypi_packages() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression meta = await package.metadata() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata self.version = Version(version) File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in init match = self._regex.search(version) TypeError: expected string or bytes-like object

py-spy Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 81, in require pkg = self._local_packages[canonicalize_name(r.name)] KeyError: 'py-spy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 197, in _main_async for req in all_requirements File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 100, in require raise NoMatchingVersionFound(str(r)) pynixify.exceptions.NoMatchingVersionFound: py-spy

tensorflow Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 81, in require pkg = self._local_packages[canonicalize_name(r.name)] KeyError: 'tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 197, in _main_async for req in all_requirements File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/version_chooser.py", line 100, in require raise NoMatchingVersionFound(str(r)) pynixify.exceptions.NoMatchingVersionFound: tensorflow

xarray-spatial Traceback (most recent call last): File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in sys.exit(main()) File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main max_jobs=args.max_jobs, File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async for package in version_chooser.all_pypi_packages() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression meta = await package.metadata() File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata self.version = Version(version) File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in init match = self._regex.search(version) TypeError: expected string or bytes-like object


Resolving xarray-spatial
Resolving dask (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving datashader (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving numba (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving numpy (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving pandas (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving pillow (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving requests (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving scikit-learn (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving scipy (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Resolving xarray (from PyPIPackage(attr=xarray-spatial, version=0.0.8))
Error parsing requirements of /nix/store/qg3j4lz94i0fs36b0g41awla3vl0sr2g-numba-0.49.1.tar.gz. Assuming it has no dependencies.
Resolving numpy>=1.15 (from NixPackage(attr=xarray, version=0.15.1))
Resolving pandas>=0.25 (from NixPackage(attr=xarray, version=0.15.1))
Resolving setuptools>=41.2 (from NixPackage(attr=xarray, version=0.15.1))
Resolving setuptools>=41.2 (from NixPackage(attr=xarray, version=0.15.1))
Resolving setuptools_scm (from NixPackage(attr=xarray, version=0.15.1))
Error parsing requirements of /nix/store/62mxgy66prigwzjwni9mb42ngqx91wx2-numpy-1.18.5.zip. Assuming it has no dependencies.
Error parsing requirements of /nix/store/j61k3mv2k4hr3qjjqxi8m348n4kkz4mp-pandas-1.0.4.tar.gz. Assuming it has no dependencies.
Resolving chardet<4,>=3.0.2 (from NixPackage(attr=requests, version=2.23.0))
Resolving idna<3,>=2.5 (from NixPackage(attr=requests, version=2.23.0))
Resolving urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from NixPackage(attr=requests, version=2.23.0))
Resolving certifi>=2017.4.17 (from NixPackage(attr=requests, version=2.23.0))
Error parsing requirements of /nix/store/axza81xvwp42v1b7lpxsrdg58vmjsrzk-scikit-learn-0.23.1.tar.gz. Assuming it has no dependencies.
Error parsing requirements of /nix/store/x11d9hxaj5jyl9myi0ariwjr824am9yk-datashader-0.11.0.tar.gz. Assuming it has no dependencies.
Error parsing requirements of /nix/store/jzrmjnhj56rdg13rqxylp3scxjjihr3v-scipy-1.4.1.tar.gz. Assuming it has no dependencies.
Resolving setuptools (from NixPackage(attr=setuptools_scm, version=4.1.2))
Error parsing requirements of /nix/store/s3rnwylp3d428whfk88dy51q2mgcahj3-setuptools-46.1.3-sdist.tar.gz. Assuming it has no dependencies.
Traceback (most recent call last):
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main
    max_jobs=args.max_jobs,
  File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete
    return future.result()
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async
    for package in version_chooser.all_pypi_packages()
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression
    meta = await package.metadata()
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata
    self.version = Version(version)
  File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object
Resolving avro
Traceback (most recent call last):
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/bin/..pynixify-wrapped-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 159, in main
    max_jobs=args.max_jobs,
  File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete
    return future.result()
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 240, in _main_async
    for package in version_chooser.all_pypi_packages()
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/command.py", line 217, in write_package_expression
    meta = await package.metadata()
  File "/nix/store/s7jbqin95y5af68y3jc7qz0lmj3r3wbm-python3.7-pynixify-0.1/lib/python3.7/site-packages/pynixify/base.py", line 77, in metadata
    self.version = Version(version)
  File "/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages/packaging/version.py", line 275, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object
cript0nauta commented 4 years ago

Here I'll track the list of packages which are working now after my fixes:

cript0nauta commented 4 years ago

e77dd4990a04173c99fb2098f4df7444fa1b549e fixed avro, daiquiri, dictdiffer, google-crc32c, hunter, orange3, and xarray-spatial.

cript0nauta commented 4 years ago

430b63708ca625c19fb2713d876f3619c73c9cd1 fixed brotli, dash, and flask-compress.

cript0nauta commented 4 years ago

jq fails because it's nixpkgs expression uses srcs instead of src: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/jq/default.nix. This is technically valid, but doesn't seem to be a good practice. I would prefer to fix this in nixpkgs rather than in pynixify itself.

InLaw commented 4 years ago

makes sense

cript0nauta commented 4 years ago

dbt (actually, dbt-core) has very strict requirements: https://github.com/fishtown-analytics/dbt/blob/dev/marian-anderson/core/setup.py#L56. For example idna<2.9 won't be compatible with the idna of nixpkgs, whose version is 2.9. This is an issue that has to be resolved by dbt maintainers. It should get rid of == and < requirements in order to be compatible with nixpkgs versions.

See https://github.com/cript0nauta/pynixify/#limitations for a more detailed explaination about why this is necessary.

InLaw commented 4 years ago

is there no way to force an overwrite of dependency versions with pynixify?

cript0nauta commented 4 years ago

is there no way to force an overwrite of dependency versions with pynixify?

if you refer to overwriting the dependencies of dbt/dbt-core, there isn't a way right now.

For your own dependencies, you can as long as the dependency has a standard build process (i.e. no C code), since it won't be using the nixpkgs version of the package.

cript0nauta commented 4 years ago

Regarding py-spy, it only provides wheels and no source distributions. But unlike overpy2 (see #34), this library has a reason for that: it's written in Rust, so its build can be much different than normal. Because of this, automatically creating an expression for py-spy is out of pynixify's scope. In order to use it inside Nix, it should be manually included into nixpkgs first. Then, pynixify will be able to detect it and reuse its definition.

InLaw commented 4 years ago

ok